Initial snapcraft.yaml

This commit is contained in:
Yannick Mauray 2021-10-21 23:56:55 +02:00
parent fda53aa02b
commit a30681eb35
No known key found for this signature in database
GPG Key ID: 67C4AAC5E99CB909
1 changed files with 53 additions and 0 deletions

53
snap/snapcraft.yaml Normal file
View File

@ -0,0 +1,53 @@
name: quickgui
adopt-info: quickgui
summary: a Flutter frontend for (quickget)[https://github.com/wimpysworld/quickget]
description: |
The app is a frontend to quickget.
grade: stable
confinement: classic
base: core20
architectures:
- build-on: amd64
apps:
quickgui:
command: bin/quickgui
environment:
PATH: $SNAP/usr/bin:$SNAP/bin:$PATH
LIVE_RUN: 1
LOG_LEVEL: debug
parts:
quickgui-deps:
plugin: nil
stage-packages:
- libatk1.0-0
- libcairo-gobject2
- libcairo2
- libepoxy0
- libgtk-3-0
- libpango-1.0-0
- libpangocairo-1.0-0
quickgui:
source: .
source-type: git
plugin: nil
override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(cat pubspec.yaml | grep '^version: ' | cut -c 10- | sed 's/+/-/')"
override-build: |
set -eux
mkdir -p $SNAPCRAFT_PART_INSTALL/bin/lib
flutter channel stable
flutter upgrade
flutter config --enable-linux-desktop
flutter doctor
flutter pub get
flutter build linux --release -v
cp -r build/linux/x64/release/bundle/* $SNAPCRAFT_PART_INSTALL/bin/
build-snaps:
- flutter/latest/stable
after:
- quickgui-deps