Set CODE_SIGNING_ALLOWED: NO #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: # TODO: releaese trigger | |
jobs: | |
release: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
env: | |
CODE_SIGNING_ALLOWED: NO | |
run: | | |
xcodebuild \ | |
-project ./NyaIME.xcodeproj \ | |
-configuration Release | |
mkdir ./tmp/app | |
mv ./build/Release/NyaIME.app ./tmp/app/ | |
- name: Build Package | |
run: | | |
xcrun pkgbuild \ | |
--version 0 \ | |
--root ./tmp/app \ | |
--component-plist ./pkg.plist \ | |
--identifier me.koki.inputmethod.NyaIME \ | |
--install-location '/Library/Input Methods' \ | |
./tmp/tmp.pkg | |
- name: Build Installer | |
run: | | |
xcrun productbuild \ | |
--distribution distribution.xml \ | |
--package-path ./tmp \ | |
./tmp/NyaIME.pkg | |
# TODO: upload package to release | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NyaIME | |
path: ./tmp/NyaIME.pkg |