summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAnjan Nath <kaludios@gmail.com>2022-07-28 18:55:44 +0530
committerAshley Cui <acui@redhat.com>2022-08-04 09:46:03 -0400
commit1b3844f655cc8a13e0bd062d5fb73605c1d39c62 (patch)
treea649f45dd3cc1f9faf4159d5a3b342a1d7a345de /contrib
parent64db955e064af0651fe2e768c0bc934268aeb01a (diff)
downloadpodman-1b3844f655cc8a13e0bd062d5fb73605c1d39c62.tar.gz
podman-1b3844f655cc8a13e0bd062d5fb73605c1d39c62.tar.bz2
podman-1b3844f655cc8a13e0bd062d5fb73605c1d39c62.zip
pkginstaller: add makefile target to notarize the built pkg
[NO NEW TESTS NEEDED] Signed-off-by: Anjan Nath <kaludios@gmail.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pkginstaller/Makefile7
-rw-r--r--contrib/pkginstaller/README.md3
2 files changed, 10 insertions, 0 deletions
diff --git a/contrib/pkginstaller/Makefile b/contrib/pkginstaller/Makefile
index 984365ccb..7863a237b 100644
--- a/contrib/pkginstaller/Makefile
+++ b/contrib/pkginstaller/Makefile
@@ -9,6 +9,7 @@ QEMU_RELEASE_URL ?= https://github.com/containers/podman-machine-qemu/releases/d
PACKAGE_DIR ?= out/packaging
TMP_DOWNLOAD ?= tmp-download
PACKAGE_ROOT ?= root
+PKG_NAME := podman-installer-macos-$(ARCH).pkg
default: pkginstaller
@@ -46,6 +47,12 @@ package_root: get_gvproxy get_qemu
pkginstaller: packagedir
cd $(PACKAGE_DIR) && ./package.sh ..
+_notarize: pkginstaller
+ xcrun notarytool submit --apple-id $(NOTARIZE_USERNAME) --password $(NOTARIZE_PASSWORD) --team-id=$(NOTARIZE_TEAM) -f json --wait out/$(PKG_NAME)
+
+notarize: _notarize
+ xcrun stapler staple out/$(PKG_NAME)
+
.PHONY: clean
clean:
rm -rf $(TMP_DOWNLOAD) $(PACKAGE_ROOT) $(PACKAGE_DIR) Distribution welcome.html
diff --git a/contrib/pkginstaller/README.md b/contrib/pkginstaller/README.md
index 37c59ce04..1951d4eab 100644
--- a/contrib/pkginstaller/README.md
+++ b/contrib/pkginstaller/README.md
@@ -5,6 +5,9 @@ $ make ARCH=<amd64 | aarch64> NO_CODESIGN=1 pkginstaller
# or to create signed pkg
$ make ARCH=<amd64 | aarch64> CODESIGN_IDENTITY=<ID> PRODUCTSIGN_IDENTITY=<ID> pkginstaller
+
+# or to prepare a signed and notarized pkg for release
+$ make ARCH=<amd64 | aarch64> CODESIGN_IDENTITY=<ID> PRODUCTSIGN_IDENTITY=<ID> NOTARIZE_USERNAME=<appleID> NOTARIZE_PASSWORD=<appleID-password> NOTARIZE_TEAM=<team-id> notarize
```
The generated pkg will be written to `out/podman-macos-installer-*.pkg`.