Changed linux build method

This commit is contained in:
Juan Gilsanz Polo 2023-05-04 18:23:01 +02:00
parent 65708c48c3
commit 62cf4d0c7f
8 changed files with 59 additions and 10 deletions

30
linux/build-app.sh Executable file
View file

@ -0,0 +1,30 @@
#!/bin/bash
# Build the Flutter app and package into an archive.
# Exit if any command fails
set -e
# Echo all commands for debug purposes
set -x
projectName=AdGuard-Home-Manager
archiveName=$projectName-Linux.tar.gz
baseDir=$(pwd)
# ----------------------------- Build Flutter app ---------------------------- #
flutter clean
flutter pub get
flutter build linux --release
flutter_to_debian
cd build/linux/x64/release/bundle || exit
mv "AdGuardHomeManager" "AdGuard Home Manager"
tar -czaf $archiveName ./*