2011-05-21 20:20:39 +00:00
|
|
|
# Gitian Downloader
|
|
|
|
|
|
|
|
## Download config
|
|
|
|
|
|
|
|
Construct a download config:
|
|
|
|
|
|
|
|
---
|
|
|
|
signers:
|
2011-05-25 03:10:14 +00:00
|
|
|
BF6273FAEF7CC0BA1F562E50989F6B3048A116B5:
|
2011-05-21 20:20:39 +00:00
|
|
|
weight: 20
|
|
|
|
name: Devrandom
|
2011-05-25 03:10:14 +00:00
|
|
|
key: devrandom
|
2011-05-21 20:20:39 +00:00
|
|
|
minimum_weight: 30
|
|
|
|
|
2011-05-25 03:10:14 +00:00
|
|
|
The keys can be extracted with:
|
|
|
|
|
|
|
|
gpg --export-options export-minimal --export KEYID
|
2011-05-21 20:20:39 +00:00
|
|
|
|
2011-05-25 03:10:14 +00:00
|
|
|
and saved into devrandom-key.pgp (see "key" in signers).
|
2011-05-21 20:20:39 +00:00
|
|
|
|
2011-05-25 03:10:14 +00:00
|
|
|
The long key id can be obtained with:
|
2011-05-21 20:20:39 +00:00
|
|
|
|
2011-05-25 03:10:14 +00:00
|
|
|
gpg --status-fd 1 --dry-run --import KEYFILE
|
2011-05-21 20:20:39 +00:00
|
|
|
|
|
|
|
## ZIP file
|
|
|
|
|
|
|
|
The zip file should have the payload produced in build/out by gbuild, plus a gitian directory. The gitian directory should contain files of the form:
|
|
|
|
|
|
|
|
devrandom-build.assert
|
|
|
|
devrandom-build.assert.pgp
|
|
|
|
|
|
|
|
where the FILE.assert file is the PACKAGE-res.yml build report and the .pgp file is signature.pgp generated by gsign.
|
|
|
|
|
|
|
|
## Running the downloader
|
|
|
|
|
|
|
|
gitian-updater --url file:///tmp/PACKAGE.zip --config PACKAGE-download-config --dest DEST
|
|
|
|
|
|
|
|
Of course, the URL can be external rather than on the file system.
|