Add Makefile and macOS App build template
This commit is contained in:
parent
8a0aa0b949
commit
806b347b2e
3 changed files with 34 additions and 0 deletions
20
Makefile
Normal file
20
Makefile
Normal 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
|
14
templates/macos-app/DepartureBoard.app/Contents/Info.plist
Normal file
14
templates/macos-app/DepartureBoard.app/Contents/Info.plist
Normal 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>
|
Loading…
Add table
Reference in a new issue