嗨,我想从我的 pyqt5 应用创建快照。
所有必需的文件都存储在 .src 目录中。
因此,我设置了源:./src 。但是当我为此运行sudo snapcraft
时,此应用程序不会获得 banary 。
.src中的文件列表
$ ls ./src
# install.sh README.md Screenshot main.py uninstall.sh
我的系统详细信息:
Linux PJ-HP 4.15.0-65-generic#74〜16.04.1-Ubuntu SMP Wed Sep 18 09:51:44 UTC 2019 x86_64 x86_64 x86_64 GNU / Linux
我的snap / snapcraft.yaml是:
1 name: trackwater
1 base: core18
2 version: 1.0.2
3 summary: Track your body water to keep yourself healthy.
4 description: |
5 This app will track your body water to keep you healthy.
6 Each time you drink a glass of water this app will allow
7 you to add record of that for you. You just need to set
8 target for water drink everyday and it will save it for you.
9 It will keep remember your unfinished target even if you
10 close the app. So you don't need to keep it running. Just
11 use when you drink your water and close. That's it.
12
13 grade: devel # must be 'stable' to release into candidate/stable channels
14 confinement: devmode # use 'strict' once you have the right plugs and slots
15
16 parts:
17 app:
18 plugin: dump
19 source: ./src
20 organize:
21 main.py: trackwater
22
23 stage-packages:
24 - python3-pyqt5
25
26 apps:
27 trackwater:
28 command: bin/app
它应该具有创建的“ bin / app”,我可以将其作为名为“ trackwater”的应用程序启动