mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-04 05:57:29 +00:00
build: linux AppImage release
This commit is contained in:
+6
-6
@@ -5,14 +5,14 @@ android/keystore
|
||||
android/keystore.properties
|
||||
/.idea
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
.externalNativeBuild
|
||||
.cxx
|
||||
*.so
|
||||
/target
|
||||
/.cargo/
|
||||
/app/src/main/jniLibs
|
||||
/scripts/macos/Grim.app/Contents/MacOS/grim-bin
|
||||
/scripts/macos/cert.pem
|
||||
target
|
||||
.cargo/
|
||||
app/src/main/jniLibs
|
||||
scripts/macos/Grim.app/Contents/MacOS/grim-bin
|
||||
scripts/macos/cert.pem
|
||||
scripts/linux/Grim.AppDir/AppRun
|
||||
.intentionally-empty-file.o
|
||||
+2
-3
@@ -12,11 +12,10 @@ build = "src/build/build.rs"
|
||||
[package.metadata.bundle]
|
||||
name = "Grim"
|
||||
identifier = "mw.gri"
|
||||
icon = ["img/icon.png", "img/128x128.png", "img/128x128@2x.png"]
|
||||
icon = ["img/icon.png"]
|
||||
version = "0.1.0"
|
||||
resources = ["img"]
|
||||
copyright = "Copyright (c) Grim 2024. All rights reserved."
|
||||
category = "public.app-category.finance"
|
||||
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.
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
grim.png
|
||||
@@ -0,0 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Name=Grim
|
||||
Exec=grim
|
||||
Icon=grim
|
||||
Type=Application
|
||||
Categories=Finance
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
case $1 in
|
||||
x86|arm)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: release_macos.sh [platform]\n - platform: 'x86', 'arm'" >&2
|
||||
exit 1
|
||||
esac
|
||||
|
||||
# Setup build directory
|
||||
BASEDIR=$(cd $(dirname $0) && pwd)
|
||||
cd ${BASEDIR}
|
||||
cd ..
|
||||
|
||||
# Setup platform argument
|
||||
[[ $1 == "x86" ]] && arch+=(x86_64-unknown-linux-gnu)
|
||||
[[ $1 == "arm" ]] && arch+=(aarch64-unknown-linux-gnu)
|
||||
|
||||
# Start release build with zig linker for cross-compilation
|
||||
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
|
||||
rm target/${arch}/release/*.AppImage
|
||||
appimagetool scripts/linux/Grim.AppDir
|
||||
mv *.AppImage target/${arch}/release/Grim-0.1.0-linux-$1.AppImage
|
||||
@@ -35,7 +35,7 @@ yes | cp -rf target/${arch}/release/grim scripts/macos/Grim.app/Contents/MacOS/g
|
||||
|
||||
### Sign .app before distribution:
|
||||
### rcodesign generate-self-signed-certificate
|
||||
### rcodesign sign --pem-file test.pem scripts/macos/Grim.app
|
||||
### rcodesign sign --pem-file cert.pem scripts/macos/Grim.app
|
||||
|
||||
# Create release package
|
||||
FILE_NAME=Grim-0.1.0-macos-$1.zip
|
||||
|
||||
Reference in New Issue
Block a user