Skip to content

Commit 6901800

Browse files
committed
Update package build.
1 parent 30ab97c commit 6901800

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
CFLAGS=-arch x86_64 -arch arm64 -mmacosx-version-min=10.6
22

3+
.PHONY:
4+
package
5+
36
macher: append_data.o macher.h macher.c
47
gcc ${CFLAGS} -o macher append_data.o macher.c
58

package/build_package.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/bash
22
source IDs.sh
3-
PKG_ID=1_4
4-
VERSION=1.4
3+
PKG_ID=1_6
4+
VERSION=1.6
5+
OPTIONS="--wait --no-progress --apple-id $APPLE_ID \
6+
--team-id $DEV_ID --password $ONE_TIME_PASS --wait"
57

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

0 commit comments

Comments
 (0)