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
|
/target
|
||||||
/.cargo/
|
/.cargo/
|
||||||
/app/src/main/jniLibs
|
/app/src/main/jniLibs
|
||||||
/macos/Grim.app/Contents/MacOS/grim-bin
|
/scripts/macos/Grim.app/Contents/MacOS/grim-bin
|
||||||
/macos/cert.pem
|
/scripts/macos/cert.pem
|
||||||
.intentionally-empty-file.o
|
.intentionally-empty-file.o
|
|
@ -18,7 +18,7 @@
|
||||||
<string>AppIcon</string>
|
<string>AppIcon</string>
|
||||||
|
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>mw.grin.macos</string>
|
<string>mw.gri.macos</string>
|
||||||
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
|
@ -31,13 +31,15 @@ cd ..
|
||||||
cargo install cargo-zigbuild
|
cargo install cargo-zigbuild
|
||||||
cargo zigbuild --release --target ${arch}
|
cargo zigbuild --release --target ${arch}
|
||||||
rm .intentionally-empty-file.o
|
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:
|
### Sign .app before distribution:
|
||||||
### rcodesign generate-self-signed-certificate
|
### 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
|
# Create release package
|
||||||
FILE_NAME=Grim-0.1.0-macos-$1.zip
|
FILE_NAME=Grim-0.1.0-macos-$1.zip
|
||||||
zip ${FILE_NAME} target/${arch}/release/grim macos/Grim.app
|
rm target/${arch}/release/${FILE_NAME}
|
||||||
mv -f ${FILE_NAME} target/${arch}/release
|
cd scripts/macos
|
||||||
|
zip -r ${FILE_NAME} Grim.app
|
||||||
|
mv ${FILE_NAME} ../../target/${arch}/release
|
Loading…
Reference in a new issue