29 lines
465 B
Bash
Executable File
29 lines
465 B
Bash
Executable File
#!/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"/
|