Add Makefile and macOS App build template

This commit is contained in:
Kenneth Bruen 2024-03-16 02:28:27 +01:00
parent 8a0aa0b949
commit 806b347b2e
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1
3 changed files with 34 additions and 0 deletions

20
Makefile Normal file
View file

@ -0,0 +1,20 @@
.PHONY: debug release run run-release macos clean
debug:
zig build
run:
zig build run
release:
zig build -Doptimize=ReleaseFast
run-release:
zig build -Doptimize=ReleaseFast run
macos: release
cp -r templates/macos-app/DepartureBoard.app zig-out/
cp zig-out/bin/raylib-test zig-out/DepartureBoard.app/Contents/MacOS/DepartureBoard
clean:
rm -r zig-out

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>ExecutableFileName</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>CFBundleIdentifier</key>
<string>ro.dcdev.departure_board_zig</string>
<key>CFBundleExecutable</key>
<string>DepartureBoard</string>
</dict>
</plist>