-
Notifications
You must be signed in to change notification settings - Fork 3
/
snapcraft.yaml
73 lines (67 loc) · 1.99 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
name: ubuntu-iso-download
summary: Download the latest Ubuntu ISOs
description: |
This is used to download Ubuntu ISOs and verify hash of the
download. The following flavors are available
* Ubuntu Desktop
* Ubuntu Server
* Kubuntu
* Lubuntu
* Ubuntu Budgie
* Ubuntu Kylin
* Ubuntu MATE
* Ubuntu Studio
* Xubuntu
The release is the codename and must be a currently supported
release and defaults to the latest LTS. Only the amd64
architecture is supported for download.
For verification, the SHA-256 hash file and signed GPG has file are
both downloaded. The signed GPG file is used to verify that the
hash file is valid and the expected hash saved. Once the ISO is
downloaded, the SHA-256 hash is calculated and compared to the
expected value. If a mismatch occurs the download ISO is deleted.
base: core20
grade: stable
confinement: strict
adopt-info: ubuntu-iso-download
architectures:
- build-on: amd64
environment:
LC_ALL: C.UTF-8
LANG: C.UTF-8
apps:
ubuntu-iso-download:
command: bin/ubuntu-iso-download
plugs:
- network
- network-bind
- home
parts:
ubuntu-iso-download:
plugin: python
source: https://github.com/powersj/ubuntu-iso-download
source-type: git
python-packages:
- pip
- setuptools
- wheel
override-pull: |
snapcraftctl pull
DATE="$(date +%Y.%m.%d)"
GIT="$(git rev-parse --short HEAD)"
snapcraftctl set-version "${DATE}+git${GIT}"
keyring:
plugin: nil
stage-packages:
- ubuntu-keyring
stage:
- usr/share/keyrings/ubuntu-archive-keyring.gpg
gpg:
plugin: nil
stage-packages:
- gnupg
- libassuan0
stage:
- usr/bin/gpg
- usr/lib/x86_64-linux-gnu/libassuan.so.0
- usr/lib/x86_64-linux-gnu/libassuan.so.0.8.3