diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-01-19 16:08:54 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-01-19 16:08:54 +0000 |
commit | 86373a080f817c7e0b2e8ad98d6adb5d1f5e7055 (patch) | |
tree | 0d785882e1eaf24781e03f3cafb31b9e82fc23b4 /vars | |
parent | 85a25960350411550cdace2c3ef2c5bfd1e9b49a (diff) | |
download | midipix_build-86373a080f817c7e0b2e8ad98d6adb5d1f5e7055.tar.bz2 midipix_build-86373a080f817c7e0b2e8ad98d6adb5d1f5e7055.tar.xz |
vars/invariants_zipdist.vars:pkg_invariants_zipdist_all(): optionally sign ZIP archive.
Diffstat (limited to 'vars')
-rw-r--r-- | vars/invariants_zipdist.vars | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/vars/invariants_zipdist.vars b/vars/invariants_zipdist.vars index 66f38a64..6bc9b7df 100644 --- a/vars/invariants_zipdist.vars +++ b/vars/invariants_zipdist.vars @@ -16,19 +16,29 @@ pkg_invariants_zipdist_all() { ex_rtl_fileop rm "${BUILD_WORKDIR}/zipdist"; fi; ex_rtl_fileop mkdir "${BUILD_WORKDIR}/zipdist"; - "${BUILD_WORKDIR}/mpackage/mpackage.sh" \ - --defroot="${DEFAULT_ZIPDIST_DEFROOT}" \ - --flysyms \ - --minroot="${PREFIX_MINIPIX}" \ - --objroot="${BUILD_WORKDIR}" \ - --pkgroot="${BUILD_WORKDIR}/zipdist/pkgroot" \ - --product=Midipix \ - --subset="${_pkglist_fname}" \ - --symbols \ - --sysroot="${BUILD_WORKDIR}/zipdist/sysroot" \ - --target="${DEFAULT_TARGET}" \ - --tmproot="${BUILD_WORKDIR}/zipdist/tmproot" \ + "${BUILD_WORKDIR}/mpackage/mpackage.sh" \ + --defroot="${DEFAULT_ZIPDIST_DEFROOT}" \ + --flysyms \ + --minroot="${PREFIX_MINIPIX}" \ + --objroot="${BUILD_WORKDIR}" \ + --pkgroot="${BUILD_WORKDIR}/zipdist/pkgroot" \ + --product=Midipix \ + --subset="${_pkglist_fname}" \ + --symbols \ + --sysroot="${BUILD_WORKDIR}/zipdist/sysroot" \ + --target="${DEFAULT_TARGET}" \ + --tmproot="${BUILD_WORKDIR}/zipdist/tmproot" \ --zipfile="${PREFIX}/${_dist_fname}"; + ex_rtl_log_msg info "Finished building deployable distribution ZIP archive."; + if [ -n "${DEFAULT_ZIPDIST_SIGN_GPG_KEY}" ]\ + && [ -x "$(which gpg 2>/dev/null)" ]\ + && gpg --list-keys "${DEFAULT_ZIPDIST_SIGN_GPG_KEY}" >/dev/null 2>&1; then + ex_rtl_log_msg info "Signing deployable distribution ZIP archive..."; + gpg --armor --passphrase-file /dev/null \ + --local-user "${DEFAULT_ZIPDIST_SIGN_GPG_KEY}" \ + --sign "${PREFIX}/${_dist_fname}"; + ex_rtl_log_msg info "Signed deployable distribution ZIP archive."; + fi; fi; }; |