Browse Source

Add Makefile and macOS App build template

master
Kenneth Bruen 10 months ago
parent
commit
806b347b2e
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 20
      Makefile
  2. 14
      templates/macos-app/DepartureBoard.app/Contents/Info.plist
  3. 0
      templates/macos-app/DepartureBoard.app/Contents/MacOS/.gitkeep

20
Makefile

@ -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

14
templates/macos-app/DepartureBoard.app/Contents/Info.plist

@ -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>

0
templates/macos-app/DepartureBoard.app/Contents/MacOS/.gitkeep

Loading…
Cancel
Save