Update Makefiles.
This commit is contained in:
24
Makefile
24
Makefile
@@ -2,35 +2,37 @@ APPLE_ID := $(shell cat ./ids/APPLE_ID)
|
|||||||
TEAM_ID := $(shell cat ./ids/TEAM_ID)
|
TEAM_ID := $(shell cat ./ids/TEAM_ID)
|
||||||
APP_SPECIFIC_PASSWORD := $(shell cat ./ids/APP_SPECIFIC_PASSWORD)
|
APP_SPECIFIC_PASSWORD := $(shell cat ./ids/APP_SPECIFIC_PASSWORD)
|
||||||
|
|
||||||
CmdBar.app:
|
exe = CmdBar
|
||||||
|
|
||||||
|
$(exe).app:
|
||||||
$(MAKE) -C src FLAGS=-O CFLAGS=-O3 default
|
$(MAKE) -C src FLAGS=-O CFLAGS=-O3 default
|
||||||
|
|
||||||
container:
|
container:
|
||||||
ditto -c -k --keepParent ./src/CmdBar.app ./build/CmdBar.zip
|
ditto -c -k --keepParent ./src/$(exe).app ./build/$(exe).zip
|
||||||
|
|
||||||
notarize:
|
notarize:
|
||||||
xcrun notarytool submit ./build/CmdBar.zip \
|
xcrun notarytool submit ./build/$(exe).zip \
|
||||||
--apple-id "$(APPLE_ID)" --team-id "$(TEAM_ID)" \
|
--apple-id "$(APPLE_ID)" --team-id "$(TEAM_ID)" \
|
||||||
--password "$(APP_SPECIFIC_PASSWORD)" --wait
|
--password "$(APP_SPECIFIC_PASSWORD)" --wait
|
||||||
|
|
||||||
staple:
|
staple:
|
||||||
cd build && \
|
cd build && \
|
||||||
ditto -xk CmdBar.zip . && \
|
ditto -xk $(exe).zip . && \
|
||||||
rm CmdBar.zip && \
|
rm $(exe).zip && \
|
||||||
xcrun stapler staple CmdBar.app
|
xcrun stapler staple $(exe).app
|
||||||
|
|
||||||
zip:
|
zip:
|
||||||
cd build && \
|
cd build && \
|
||||||
ditto -c -k --keepParent CmdBar.app CmdBar.zip
|
ditto -c -k --keepParent $(exe).app $(exe).zip
|
||||||
|
|
||||||
dmg:
|
dmg:
|
||||||
cp background.png build && cd build && \
|
cp background.png build && cd build && \
|
||||||
create-dmg --volname "CmdBar Installer" --window-size 600 400 \
|
create-dmg --volname "$(exe) Installer" --window-size 600 400 \
|
||||||
--background "background.png" --icon "CmdBar.app" 200 170 \
|
--background "background.png" --icon "$(exe).app" 200 170 \
|
||||||
--app-drop-link 400 170 --icon-size 100 "CmdBar.dmg" "CmdBar"
|
--app-drop-link 400 170 --icon-size 100 "$(exe).dmg" "$(exe)"
|
||||||
rm build/background.png
|
rm build/background.png
|
||||||
|
|
||||||
all: CmdBar.app container notarize staple zip dmg
|
all: $(exe).app container notarize staple zip dmg
|
||||||
|
|
||||||
status:
|
status:
|
||||||
@echo 'xcrun notarytool log "" --apple-id "$(APPLE_ID)" --team-id "$(TEAM_ID)" --password "$(APP_SPECIFIC_PASSWORD)" developer_log.json'
|
@echo 'xcrun notarytool log "" --apple-id "$(APPLE_ID)" --team-id "$(TEAM_ID)" --password "$(APP_SPECIFIC_PASSWORD)" developer_log.json'
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ $(EXEC).app: $(EXEC)
|
|||||||
mkdir -p $@/Contents/Resources/ && \
|
mkdir -p $@/Contents/Resources/ && \
|
||||||
cp Info.plist $@/Contents/ && \
|
cp Info.plist $@/Contents/ && \
|
||||||
cp resources/AppIcon.icns $@/Contents/Resources/ && \
|
cp resources/AppIcon.icns $@/Contents/Resources/ && \
|
||||||
cp $(EXEC) $@/Contents/MacOS/
|
cp $(EXEC) $@/Contents/MacOS/ && \
|
||||||
$(if $(DEBUG), codesign --entitlements $(EXEC).entitlements \
|
$(if $(DEBUG), codesign --entitlements $(EXEC).entitlements \
|
||||||
-s ${APPLE_DEVELOPMENT} -f --timestamp -o runtime $(EXEC).app, \
|
-s ${APPLE_DEVELOPMENT} -f --timestamp -o runtime $(EXEC).app, \
|
||||||
codesign -s ${APPLE_DEVELOPER_ID_APPLICATION} -f --timestamp \
|
codesign -s ${APPLE_DEVELOPER_ID_APPLICATION} -f --timestamp \
|
||||||
|
|||||||
Reference in New Issue
Block a user