-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
78 lines (70 loc) · 2.47 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: aesify # you probably want to 'snapcraft register <name>'
title: AESify
base: core20 # the base snap is the execution environment for this snap
adopt-info: aesify
summary: Encrypt PDF-Files easily with 128-Bit or 256-Bit AES encyption
description: |
With AESify you can encrypt PDF files with "military grade"
Advanced Encryption Standard (AES) encryption, set "Document open"
and "Permissions" passwords, set document restrictions and define a
page range if you want to export a part of your PDF.
If you want to access removable (mounted) media/drives do not
forget to allow read/write access in AESify's snap store permission
settings!
license: MPL-2.0
compression: lzo
grade: stable # 'stable' 'devel'
confinement: strict # 'strict' 'devmode'
architectures:
- build-on: amd64
- build-on: i386
apps:
aesify:
command: bin/python3.9 $SNAP/Code/AESify.py
command-chain: [bin/debian-multiarch-triplet-provider-launch, bin/tcltk-launch]
desktop: ${SNAPCRAFT_STAGE}/gui/aesify.desktop
extensions: [gnome-3-38]
plugs:
- home
- removable-media
- unity7
- x11
parts:
get-source:
plugin: dump
source: https://github.com/digidigital/AESify.git
tcltk-launch:
plugin: nil
stage-snaps: [tcltk-launch]
debian-multiarch-triplet-provider-launch:
plugin: nil
stage-snaps: [debian-multiarch-triplet-provider-launch]
aesify:
plugin: python
source: https://github.com/digidigital/AESify.git
source-type: git
python-packages: [pyperclip, pikepdf, darkdetect]
override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(git describe --tags)"
build-environment:
- SNAPCRAFT_PYTHON_INTERPRETER: python3.9
# python3.9 lives in $SNAPCRAFT_PART_INSTALL/bin
- PATH: $SNAPCRAFT_PART_INSTALL/bin:$PATH
- PYTHONPATH: ''
build-packages:
- python3.9-venv
- python3.9-dev
override-build: |
# Work around a bug in snapcraft python plugin
# https://forum.snapcraft.io/t/build-a-snap-with-any-version-of-python-i-want/10420/8
rm -rf $SNAPCRAFT_PART_INSTALL/usr/lib/python3.9/distutils
cp -r /usr/lib/python3.9/distutils $SNAPCRAFT_PART_INSTALL/usr/lib/python3.9/distutils
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/include/
cp -r /usr/include/python3.9 $SNAPCRAFT_PART_INSTALL/usr/include/python3.9
snapcraftctl build
stage-packages:
- python3.9-venv
- python3-tk
- xclip
- tcl