29 lines
465 B
Bash
29 lines
465 B
Bash
|
#!/usr/bin/env 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=rluvApp
|
||
|
|
||
|
archiveName=$projectName-Linux-Portable.tar.gz
|
||
|
baseDir=$(pwd)
|
||
|
|
||
|
|
||
|
# ----------------------------- Build Flutter app ---------------------------- #
|
||
|
|
||
|
|
||
|
flutter pub get
|
||
|
flutter build linux
|
||
|
|
||
|
cd build/linux/arm64/release/bundle || exit
|
||
|
tar -czaf $archiveName ./*
|
||
|
mv $archiveName "$baseDir"/
|