quakespasm/MacOSX/build-macos.sh
Eric Wasylishen d51dc7a194 macos: preliminary auto-build.yml github action
- add build-macos.sh script
- copy Quakespasm-Spiked.txt to build artifacts folder
- create Quakespasm-Spiked-Revision.txt file
2021-12-30 01:39:47 -07:00

17 lines
533 B
Bash
Executable file

#!/bin/bash
./setup-vcpkg.sh
xcodebuild -project QuakeSpasm.xcodeproj -target QuakeSpasm-Spiked-SDL2
cat <<EOF > build/Release/Quakespasm-Spiked-Revision.txt
Git URL: $(git config --get remote.origin.url)
Git Revision: $(git rev-parse HEAD)
Git Date: $(git show --no-patch --no-notes --pretty='%ai' HEAD)
Compile Date: $(date)
EOF
# zip the files in `build/Release` to create the final archive for distribution
cd build/Release
rm Quakespasm-Spiked-macos.zip
zip --symlinks --recurse-paths Quakespasm-Spiked-macos.zip *