Added flatpak packaging stuffs
This commit is contained in:
parent
000f409052
commit
2c0ae00103
28
build-flutter-app.sh
Executable file
28
build-flutter-app.sh
Executable file
|
@ -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"/
|
12
packaging/linux/com.fosscat.rluv.desktop
Normal file
12
packaging/linux/com.fosscat.rluv.desktop
Normal file
|
@ -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
|
32
packaging/linux/com.fosscat.rluv.metainfo.xml
Normal file
32
packaging/linux/com.fosscat.rluv.metainfo.xml
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Generator for metainfo & .desktop files:
|
||||
https://www.freedesktop.org/software/appstream/metainfocreator/#/
|
||||
-->
|
||||
<component type="desktop-application">
|
||||
<id>com.fosscat.rluv</id>
|
||||
<name>rluv</name>
|
||||
<summary>A budget app made with love</summary>
|
||||
<developer_name>Nate Anderson</developer_name>
|
||||
<url type="homepage">https://git.fosscat.com/n8r/rluv_client</url>
|
||||
<metadata_license></metadata_license>
|
||||
<project_license></project_license>
|
||||
<supports>
|
||||
<control>pointing</control>
|
||||
<control>keyboard</control>
|
||||
<control>touch</control>
|
||||
</supports>
|
||||
<description>
|
||||
<p>A budgeting app for my needs. Maybe your too?</p>
|
||||
</description>
|
||||
<launchable type="desktop-id">com.fosscat.rluv.desktop</launchable>
|
||||
<screenshots>
|
||||
<!-- <screenshot type="default"> -->
|
||||
<!-- <image>https://raw.githubusercontent.com/Merrit/flutter_flatpak_example/main/screenshots/screenshot.png</image> -->
|
||||
<!-- </screenshot> -->
|
||||
</screenshots>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="0.0.1" date="2024-06-02" />
|
||||
</releases>
|
||||
</component>
|
Loading…
Reference in New Issue
Block a user