Files
Joel Jothiprakasam 8a952622ee Version bumps
Signed-off-by: Joel Jothiprakasam <hijoelj@gmail.com>
2024-09-15 11:54:10 -05:00

24 lines
673 B
Bash
Executable File

#!/bin/bash
trap "exit" INT
set -eux
cd "$(dirname "$0")/.."
flutter pub get
flutter build linux --release -v
arch=$(uname -m)
if [[ $arch == "x86_64" ]]; then
folder="x64"
elif [[ $arch == "aarch64" ]]; then
folder="arm64"
fi
# Inject version number into version.json
tmp=$(mktemp)
chmod 644 "$tmp"
jq '.version = "1.13.100.0"' build/linux/$folder/release/bundle/data/flutter_assets/version.json > "$tmp" && mv "$tmp" build/linux/$folder/release/bundle/data/flutter_assets/version.json
chmod +x build/linux/$folder/release/bundle/bluebubbles
tar cvf bluebubbles-linux-"$arch".tar -C build/linux/$folder/release/bundle .
sha256sum bluebubbles-linux-"$arch".tar