mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-16 15:02:53 +00:00
Changed linux build method
This commit is contained in:
parent
65708c48c3
commit
62cf4d0c7f
8 changed files with 59 additions and 10 deletions
30
linux/build-app.sh
Executable file
30
linux/build-app.sh
Executable 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 ./*
|
Loading…
Add table
Add a link
Reference in a new issue