From 2c0ae001036a9698dc555761a1685f7c1ad0695f Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Sun, 2 Jun 2024 17:58:51 -0600 Subject: [PATCH] Added flatpak packaging stuffs --- build-flutter-app.sh | 28 ++++++++++++++++ packaging/linux/com.fosscat.rluv.desktop | 12 +++++++ packaging/linux/com.fosscat.rluv.metainfo.xml | 32 +++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100755 build-flutter-app.sh create mode 100644 packaging/linux/com.fosscat.rluv.desktop create mode 100644 packaging/linux/com.fosscat.rluv.metainfo.xml diff --git a/build-flutter-app.sh b/build-flutter-app.sh new file mode 100755 index 0000000..fcf7f09 --- /dev/null +++ b/build-flutter-app.sh @@ -0,0 +1,28 @@ +#!/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"/ diff --git a/packaging/linux/com.fosscat.rluv.desktop b/packaging/linux/com.fosscat.rluv.desktop new file mode 100644 index 0000000..669a308 --- /dev/null +++ b/packaging/linux/com.fosscat.rluv.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Type=Application + +Name=rluv +Comment=Budget App +Categories=Utility; + +Icon=com.fosscat.rluv +Exec=rluv +Terminal=false +StartupWMClass=rluv diff --git a/packaging/linux/com.fosscat.rluv.metainfo.xml b/packaging/linux/com.fosscat.rluv.metainfo.xml new file mode 100644 index 0000000..e37e515 --- /dev/null +++ b/packaging/linux/com.fosscat.rluv.metainfo.xml @@ -0,0 +1,32 @@ + + + + com.fosscat.rluv + rluv + A budget app made with love + Nate Anderson + https://git.fosscat.com/n8r/rluv_client + + + + pointing + keyboard + touch + + +

A budgeting app for my needs. Maybe your too?

+
+ com.fosscat.rluv.desktop + + + + + + + + + +