build: remove cargo-bundle fields, move platforms out of scripts dir
This commit is contained in:
parent
c97aa2062d
commit
a58366e2f1
10 changed files with 9 additions and 22 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -12,7 +12,7 @@ android/keystore.properties
|
|||
target
|
||||
.cargo/
|
||||
app/src/main/jniLibs
|
||||
scripts/macos/Grim.app/Contents/MacOS/grim-bin
|
||||
scripts/macos/cert.pem
|
||||
scripts/linux/Grim.AppDir/AppRun
|
||||
macos/Grim.app/Contents/MacOS/grim-bin
|
||||
macos/cert.pem
|
||||
linux/Grim.AppDir/AppRun
|
||||
.intentionally-empty-file.o
|
13
Cargo.toml
13
Cargo.toml
|
@ -9,19 +9,6 @@ keywords = [ "crypto", "grin", "mimblewimble" ]
|
|||
edition = "2021"
|
||||
build = "src/build/build.rs"
|
||||
|
||||
[package.metadata.bundle]
|
||||
name = "Grim"
|
||||
identifier = "mw.gri"
|
||||
icon = ["img/icon.png"]
|
||||
version = "0.1.0"
|
||||
resources = ["img"]
|
||||
category = "Finance"
|
||||
short_description = "Cross-platform GUI for Grin."
|
||||
long_description = """
|
||||
Cross-platform GUI for Grin on Rust with focus on usability and availability to be used by anyone, anywhere.
|
||||
"""
|
||||
deb_depends = ["libssl-dev", "pkg-config"]
|
||||
|
||||
[lib]
|
||||
name="grim"
|
||||
|
||||
|
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
@ -22,7 +22,7 @@ cargo install cargo-zigbuild
|
|||
cargo zigbuild --release --target ${arch}
|
||||
|
||||
# Create AppImage with https://github.com/AppImage/appimagetool
|
||||
cp target/${arch}/release/grim scripts/linux/Grim.AppDir/AppRun
|
||||
cp target/${arch}/release/grim linux/Grim.AppDir/AppRun
|
||||
rm target/${arch}/release/*.AppImage
|
||||
appimagetool scripts/linux/Grim.AppDir
|
||||
appimagetool linux/Grim.AppDir
|
||||
mv *.AppImage target/${arch}/release/Grim-0.1.0-linux-$1.AppImage
|
|
@ -31,15 +31,15 @@ cd ..
|
|||
cargo install cargo-zigbuild
|
||||
cargo zigbuild --release --target ${arch}
|
||||
rm .intentionally-empty-file.o
|
||||
yes | cp -rf target/${arch}/release/grim scripts/macos/Grim.app/Contents/MacOS/grim-bin
|
||||
yes | cp -rf target/${arch}/release/grim macos/Grim.app/Contents/MacOS/grim-bin
|
||||
|
||||
### Sign .app before distribution:
|
||||
### rcodesign generate-self-signed-certificate
|
||||
### rcodesign sign --pem-file cert.pem scripts/macos/Grim.app
|
||||
### rcodesign sign --pem-file cert.pem macos/Grim.app
|
||||
|
||||
# Create release package
|
||||
FILE_NAME=Grim-0.1.0-macos-$1.zip
|
||||
rm target/${arch}/release/${FILE_NAME}
|
||||
cd scripts/macos
|
||||
cd macos
|
||||
zip -r ${FILE_NAME} Grim.app
|
||||
mv ${FILE_NAME} ../../target/${arch}/release
|
||||
mv ${FILE_NAME} ../target/${arch}/release
|
Loading…
Reference in a new issue