-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (20 loc) · 1.17 KB
/
Makefile
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
include Makefile.config
all: test
test: repo org.getmonero.Wallet.json
flatpak-builder --force-clean --repo=repo --ccache --require-changes monero-wallet org.getmonero.Wallet.json
flatpak build-update-repo repo
release: release-repo org.getmonero.Wallet.json
if [ "x${RELEASE_GPG_KEY}" == "x" ]; then echo Must set RELEASE_GPG_KEY in Makefile.config, try \'make gpg-key\'; exit 1; fi
flatpak-builder --force-clean --repo=release-repo --ccache --gpg-homedir=gpg --gpg-sign=${RELEASE_GPG_KEY} monero-wallet org.getmonero.Wallet.json
flatpak build-update-repo --generate-static-deltas --gpg-homedir=gpg --gpg-sign=${RELEASE_GPG_KEY} release-repo
repo:
ostree init --mode=archive-z2 --repo=repo
release-repo:
ostree init --mode=archive-z2 --repo=release-repo
gpg-key:
if [ "x${KEY_USER}" == "x" ]; then echo Must set KEY_USER in Makefile.config; exit 1; fi
mkdir -p gpg
gpg2 --homedir gpg --quick-gen-key ${KEY_USER}
echo Enter the above gpg key id as RELEASE_GPG_KEY in Makefile.config
monero-core-wallet.flatpakref: monero-core-wallet.flatpakref.in
sed -e 's|@URL@|${URL}|g' -e 's|@GPG@|$(shell gpg2 --homedir=gpg --export ${RELEASE_GPG_KEY} | base64 | tr -d '\n')|' $< > $@