added basic snapcraft configuration for distribution.

This commit is contained in:
Herbert Poul
2020-06-03 16:01:49 +02:00
parent a91e28c786
commit bbfb9706a8
5 changed files with 44 additions and 1 deletions

8
.gitignore vendored
View File

@ -28,3 +28,11 @@ Flutter.podspec
/authpass/_tools/secrets/gradle_home/amazon-key.jks
settings_aar.gradle
_debug-full-r8-config.txt
# snapcraft files
/*.snap
/parts
/stage
/prime

View File

@ -100,8 +100,9 @@ case "${flavor}" in
version=$(cat pubspec.yaml | grep version | cut -d' ' -f2 | cut -d'+' -f1)
$FLT build -v linux -t lib/env/production.dart --release --dart-define=AUTHPASS_VERSION=$version --dart-define=AUTHPASS_BUILD_NUMBER=$buildnumber --dart-define=AUTHPASS_PACKAGE_NAME=design.codeux.authpass.linux
outputfilename="authpass-linux-${buildnumber}.tar.gz"
outputfilename="authpass-linux-${version}_${buildnumber}.tar.gz"
outputpath="build/linux/release/${outputfilename}"
echo "${version}+${buildnumber}" > build/linux/release/version.txt
tar czvf ${outputpath} --transform "s/^build.*bundle/authpass/" build/linux/release/bundle
echo "::set-output name=outputfilename::${outputfilename}"
echo "::set-output name=outputpath::${outputpath}"

View File

@ -0,0 +1,2 @@
Exec=authpass
Icon=${SNAP}/meta/gui/authpass.png

BIN
snap/gui/authpass.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

32
snap/snapcraft.yaml Normal file
View File

@ -0,0 +1,32 @@
name: authpass
base: core
# version: '0.1'
icon: snap/gui/authpass.png
summary: Open Source Password Manager with Keepass file support.
description: |
Easily and securely keep track of all your Passwords!
AuthPass is a stand alone password manager with support for the popular
Keepass (kdbx 3.x AND kdbx 4.x 🎉️) format. Store your passwords, share
across all your devices and easily find them whenever you need to login.
adopt-info: setversion
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
setversion:
plugin: nil
override-pull: |
snapcraftctl pull
snapcraftctl set-version $(cat ${SNAPCRAFT_PROJECT_DIR}/authpass/build/linux/release/version.txt)
main:
# See 'snapcraft plugins'
plugin: dump
source: authpass/build/linux/release/bundle
apps:
authpass:
command: authpass
plugs: [home, network, x11]