Improve flatpak build script

This commit is contained in:
Bnyro 2023-06-26 17:02:12 +02:00
parent f1b729be5d
commit 1d455a7e02
1 changed files with 5 additions and 3 deletions

View File

@ -1,10 +1,12 @@
# Usage ./build-flatpak.sh [version]
# Usage ./build-flatpak.sh
# First run `cargo vendor` and add the output to ~/.cargo/config.toml
VERSION=$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name | test("lemoa")) | .version')
rm -rf target _build build builddir
cd ..
tar cfJ "lemoa-$1.tar.xz" lemoa
sha256sum "lemoa-$1.tar.xz"
tar cfJ "lemoa-$VERSION.tar.xz" lemoa
sha256sum "lemoa-$VERSION.tar.xz"
cd lemoa
git reset --hard &> /dev/null
rm -rf vendor .cargo