Initial commit.

This commit is contained in:
2024-12-27 15:30:07 -08:00
commit 4795f95416
58 changed files with 9449 additions and 0 deletions

35
Makefile Normal file
View 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