mirror of
https://github.com/authpass/authpass.git
synced 2025-08-06 08:50:40 +08:00
added basic snapcraft configuration for distribution.
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@ -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
|
||||
|
||||
|
@ -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}"
|
||||
|
2
snap/gui/authpass.desktop
Normal file
2
snap/gui/authpass.desktop
Normal file
@ -0,0 +1,2 @@
|
||||
Exec=authpass
|
||||
Icon=${SNAP}/meta/gui/authpass.png
|
BIN
snap/gui/authpass.png
Normal file
BIN
snap/gui/authpass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
32
snap/snapcraft.yaml
Normal file
32
snap/snapcraft.yaml
Normal 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]
|
Reference in New Issue
Block a user