build: remove cargo-bundle fields, move platforms out of scripts dir

This commit is contained in:
ardocrat 2024-06-20 13:27:14 +03:00
parent c97aa2062d
commit a58366e2f1
10 changed files with 9 additions and 22 deletions

6
.gitignore vendored
View file

@ -12,7 +12,7 @@ android/keystore.properties
target target
.cargo/ .cargo/
app/src/main/jniLibs app/src/main/jniLibs
scripts/macos/Grim.app/Contents/MacOS/grim-bin macos/Grim.app/Contents/MacOS/grim-bin
scripts/macos/cert.pem macos/cert.pem
scripts/linux/Grim.AppDir/AppRun linux/Grim.AppDir/AppRun
.intentionally-empty-file.o .intentionally-empty-file.o

View file

@ -9,19 +9,6 @@ keywords = [ "crypto", "grin", "mimblewimble" ]
edition = "2021" edition = "2021"
build = "src/build/build.rs" 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] [lib]
name="grim" name="grim"

View file

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -22,7 +22,7 @@ cargo install cargo-zigbuild
cargo zigbuild --release --target ${arch} cargo zigbuild --release --target ${arch}
# Create AppImage with https://github.com/AppImage/appimagetool # 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 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 mv *.AppImage target/${arch}/release/Grim-0.1.0-linux-$1.AppImage

View file

@ -31,15 +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 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: ### Sign .app before distribution:
### rcodesign generate-self-signed-certificate ### 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 # Create release package
FILE_NAME=Grim-0.1.0-macos-$1.zip FILE_NAME=Grim-0.1.0-macos-$1.zip
rm target/${arch}/release/${FILE_NAME} rm target/${arch}/release/${FILE_NAME}
cd scripts/macos cd macos
zip -r ${FILE_NAME} Grim.app zip -r ${FILE_NAME} Grim.app
mv ${FILE_NAME} ../../target/${arch}/release mv ${FILE_NAME} ../target/${arch}/release