chore(linux): configure Snapscraft deployment [skip ci]

This commit is contained in:
Jagandeep Brar
2022-03-26 18:47:15 -07:00
parent 6277228f53
commit c03926a028
6 changed files with 66 additions and 1 deletions

1
.gitignore vendored
View File

@@ -73,3 +73,4 @@ lib/firebase_options.dart
# Node Dependency directories
node_modules/
jspm_packages/
*.snap

View File

@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.10)
project(runner LANGUAGES CXX)
set(BINARY_NAME "LunaSea")
set(BINARY_NAME "lunasea")
set(APPLICATION_ID "app.lunasea.lunasea")
cmake_policy(SET CMP0063 NEW)

View File

@@ -7,6 +7,7 @@
"build:android": "flutter clean && flutter build apk --split-per-abi --bundle-sksl-path shaders/android_sksl.json --release",
"build:ios": "flutter clean && flutter build ipa --bundle-sksl-path shaders/ios_sksl.json --release",
"build:linux": "flutter clean && flutter build linux --release",
"build:linux:snap": "flutter clean && snapcraft --use-lxd",
"build:macos": "flutter clean && flutter build macos --release",
"build:windows": "flutter clean && flutter build windows --release",
"build:web": "flutter clean && flutter build web --web-renderer canvaskit --release",

8
snap/gui/lunasea.desktop Normal file
View File

@@ -0,0 +1,8 @@
[Desktop Entry]
Name=LunaSea
Comment=Self-hosted software controller built using Flutter
Exec=lunasea
Icon=${SNAP}/meta/gui/lunasea.png
Terminal=false
Type=Application
Categories=Utilities;Entertainment;

BIN
snap/gui/lunasea.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

55
snap/snapcraft.yaml Normal file
View File

@@ -0,0 +1,55 @@
name: lunasea
version: 10.0.2
title: LunaSea
summary: Self-hosted software controller built using Flutter
description: >
LunaSea is a fully featured, open source self-hosted controller focused on giving you a seamless experience between all of your self-hosted media software remotely on your devices. LunaSea currently supports:
* Lidarr
* Radarr
* Sonarr
* NZBGet
* SABnzbd
* Newznab Indexer Searching
* NZBHydra2
* Tautulli
* Wake on LAN
LunaSea even comes with support for webhook-based push notifications, multiple instances of applications using profiles, backup and restore functionality for your configuration, an AMOLED black theme, and more!
---
Please note that LunaSea is purely a remote control application, it does not offer any functionality without software installed on a server/computer.
icon: snap/gui/lunasea.png
license: GPL-3.0
contact: hello@lunasea.app
donation: https://www.lunasea.app/donate
source-code: https://www.lunasea.app/github
website: https://www.lunasea.app
confinement: devmode
base: core18
slots:
dbus-lunasea:
interface: dbus
bus: session
name: app.lunasea.lunasea
apps:
lunasea:
command: lunasea
extensions: [flutter-stable]
plugs:
- network
slots:
- dbus-lunasea
parts:
lunasea:
source: .
plugin: flutter
flutter-revision: stable
flutter-target: lib/main.dart