Initial commit.
This commit is contained in:
35
Makefile
Normal file
35
Makefile
Normal file
@@ -0,0 +1,35 @@
|
||||
CmdBar.app:
|
||||
$(MAKE) -C src FLAGS=-O CFLAGS=-O3 all
|
||||
|
||||
container:
|
||||
ditto -c -k --keepParent ./src/CmdBar.app ./build/CmdBar.zip
|
||||
|
||||
notarize:
|
||||
xcrun notarytool submit ./build/CmdBar.zip \
|
||||
--keychain-profile "notarytool-password" --wait
|
||||
|
||||
staple:
|
||||
cd build && \
|
||||
ditto -xk CmdBar.zip . && \
|
||||
rm CmdBar.zip && \
|
||||
xcrun stapler staple CmdBar.app
|
||||
|
||||
zip:
|
||||
cd build && \
|
||||
ditto -c -k --keepParent CmdBar.app CmdBar.zip
|
||||
|
||||
dmg:
|
||||
cp background.png build && cd build && \
|
||||
create-dmg --volname "CmdBar Installer" --window-size 600 400 \
|
||||
--background "background.png" --icon "CmdBar.app" 200 170 \
|
||||
--app-drop-link 400 170 --icon-size 100 "CmdBar.dmg" "CmdBar"
|
||||
rm build/background.png
|
||||
|
||||
all: CmdBar.app container notarize staple zip dmg
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
clean-all: clean
|
||||
mkdir build
|
||||
@$(MAKE) -C src clean-all
|
||||
Reference in New Issue
Block a user