build: move macos files to scripts, fix zip creation
This commit is contained in:
parent
db09df3663
commit
a54d9521e8
5 changed files with 9 additions and 7 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -13,6 +13,6 @@ android/keystore.properties
|
|||
/target
|
||||
/.cargo/
|
||||
/app/src/main/jniLibs
|
||||
/macos/Grim.app/Contents/MacOS/grim-bin
|
||||
/macos/cert.pem
|
||||
/scripts/macos/Grim.app/Contents/MacOS/grim-bin
|
||||
/scripts/macos/cert.pem
|
||||
.intentionally-empty-file.o
|
|
@ -18,7 +18,7 @@
|
|||
<string>AppIcon</string>
|
||||
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>mw.grin.macos</string>
|
||||
<string>mw.gri.macos</string>
|
||||
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
|
@ -31,13 +31,15 @@ cd ..
|
|||
cargo install cargo-zigbuild
|
||||
cargo zigbuild --release --target ${arch}
|
||||
rm .intentionally-empty-file.o
|
||||
yes | cp -rf target/${arch}/release/grim macos/Grim.app/Contents/MacOS/grim-bin
|
||||
yes | cp -rf target/${arch}/release/grim scripts/macos/Grim.app/Contents/MacOS/grim-bin
|
||||
|
||||
### Sign .app before distribution:
|
||||
### rcodesign generate-self-signed-certificate
|
||||
### rcodesign sign --pem-file test.pem macos/Grim.app
|
||||
### rcodesign sign --pem-file test.pem scripts/macos/Grim.app
|
||||
|
||||
# Create release package
|
||||
FILE_NAME=Grim-0.1.0-macos-$1.zip
|
||||
zip ${FILE_NAME} target/${arch}/release/grim macos/Grim.app
|
||||
mv -f ${FILE_NAME} target/${arch}/release
|
||||
rm target/${arch}/release/${FILE_NAME}
|
||||
cd scripts/macos
|
||||
zip -r ${FILE_NAME} Grim.app
|
||||
mv ${FILE_NAME} ../../target/${arch}/release
|
Loading…
Reference in a new issue