Skip to content

Commit

Permalink
Update package build.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Oct 8, 2023
1 parent 30ab97c commit 6901800
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
CFLAGS=-arch x86_64 -arch arm64 -mmacosx-version-min=10.6

.PHONY:
package

macher: append_data.o macher.h macher.c
gcc ${CFLAGS} -o macher append_data.o macher.c

Expand Down
13 changes: 7 additions & 6 deletions package/build_package.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/bin/bash
source IDs.sh
PKG_ID=1_4
VERSION=1.4
PKG_ID=1_6
VERSION=1.6
OPTIONS="--wait --no-progress --apple-id $APPLE_ID \
--team-id $DEV_ID --password $ONE_TIME_PASS --wait"

mkdir -p bin
cp ../macher bin
codesign -v -s $DEV_ID --timestamp --options runtime --force bin/macher
pkgbuild --root bin --identifier info.marc-culler.macher.$PKG_ID --version $VERSION --install-location /usr/local/bin bin.pkg
pkgbuild --root bin --identifier info.marc-culler.macher.$PKG_ID \
--install-location /usr/local/bin bin.pkg
productsign --sign $DEV_ID bin.pkg macher.pkg
rm -f bin.pkg
xcrun altool --notarize-app --primary-bundle-id "macher-$VERSION" --username $USERNAME --password $ONE_TIME_PASS --file macher.pkg
echo Waiting 90 seconds ...
sleep 90
xcrun notarytool submit $OPTIONS macher.pkg
xcrun stapler staple macher.pkg

0 comments on commit 6901800

Please sign in to comment.