mirror of https://github.com/containers/podman.git
macos: pkg: Use -arm64 suffix instead of -aarch64
All files released in https://github.com/containers/podman/releases/tag/v4.3.1 use -arm64 for the arch name except podman-installer-macos-aarch64.pkg Related: https://github.com/containers/podman/issues/16612 Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
fe548dd0b0
commit
54ef7f98d9
|
@ -1,6 +1,11 @@
|
||||||
SHELL := bash
|
SHELL := bash
|
||||||
|
|
||||||
ARCH ?= aarch64
|
ARCH ?= aarch64
|
||||||
|
ifeq ($(ARCH), aarch64)
|
||||||
|
GOARCH:=arm64
|
||||||
|
else
|
||||||
|
GOARCH:=$(ARCH)
|
||||||
|
endif
|
||||||
GVPROXY_VERSION ?= 0.4.0
|
GVPROXY_VERSION ?= 0.4.0
|
||||||
QEMU_VERSION ?= 7.1.0-1
|
QEMU_VERSION ?= 7.1.0-1
|
||||||
GVPROXY_RELEASE_URL ?= https://github.com/containers/gvisor-tap-vsock/releases/download/v$(GVPROXY_VERSION)/gvproxy-darwin
|
GVPROXY_RELEASE_URL ?= https://github.com/containers/gvisor-tap-vsock/releases/download/v$(GVPROXY_VERSION)/gvproxy-darwin
|
||||||
|
@ -8,7 +13,7 @@ QEMU_RELEASE_URL ?= https://github.com/containers/podman-machine-qemu/releases/d
|
||||||
PACKAGE_DIR ?= out/packaging
|
PACKAGE_DIR ?= out/packaging
|
||||||
TMP_DOWNLOAD ?= tmp-download
|
TMP_DOWNLOAD ?= tmp-download
|
||||||
PACKAGE_ROOT ?= root
|
PACKAGE_ROOT ?= root
|
||||||
PKG_NAME := podman-installer-macos-$(ARCH).pkg
|
PKG_NAME := podman-installer-macos-$(GOARCH).pkg
|
||||||
|
|
||||||
default: pkginstaller
|
default: pkginstaller
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,6 @@ arch=$(cat "${BASEDIR}/ARCH")
|
||||||
|
|
||||||
function build_podman() {
|
function build_podman() {
|
||||||
pushd "$1"
|
pushd "$1"
|
||||||
local goArch="${arch}"
|
|
||||||
if [ "${goArch}" = aarch64 ]; then
|
|
||||||
goArch=arm64
|
|
||||||
fi
|
|
||||||
make GOARCH="${goArch}" podman-remote HELPER_BINARIES_DIR="${HELPER_BINARIES_DIR}"
|
make GOARCH="${goArch}" podman-remote HELPER_BINARIES_DIR="${HELPER_BINARIES_DIR}"
|
||||||
make GOARCH="${goArch}" podman-mac-helper
|
make GOARCH="${goArch}" podman-mac-helper
|
||||||
cp bin/darwin/podman "contrib/pkginstaller/out/packaging/${binDir}/podman"
|
cp bin/darwin/podman "contrib/pkginstaller/out/packaging/${binDir}/podman"
|
||||||
|
@ -66,6 +62,11 @@ function signQemu() {
|
||||||
--entitlements "${BASEDIR}/hvf.entitlements" "${qemuBinDir}/qemu-system-${qemuArch}"
|
--entitlements "${BASEDIR}/hvf.entitlements" "${qemuBinDir}/qemu-system-${qemuArch}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goArch="${arch}"
|
||||||
|
if [ "${goArch}" = aarch64 ]; then
|
||||||
|
goArch=arm64
|
||||||
|
fi
|
||||||
|
|
||||||
build_podman "../../../../"
|
build_podman "../../../../"
|
||||||
sign "${binDir}/podman"
|
sign "${binDir}/podman"
|
||||||
sign "${binDir}/gvproxy"
|
sign "${binDir}/gvproxy"
|
||||||
|
@ -86,7 +87,7 @@ productbuild --distribution "${BASEDIR}/Distribution" \
|
||||||
rm "${OUTPUT}/podman.pkg"
|
rm "${OUTPUT}/podman.pkg"
|
||||||
|
|
||||||
if [ ! "${NO_CODESIGN}" -eq "1" ]; then
|
if [ ! "${NO_CODESIGN}" -eq "1" ]; then
|
||||||
productsign --timestamp --sign "${PRODUCTSIGN_IDENTITY}" "${OUTPUT}/podman-unsigned.pkg" "${OUTPUT}/podman-installer-macos-${arch}.pkg"
|
productsign --timestamp --sign "${PRODUCTSIGN_IDENTITY}" "${OUTPUT}/podman-unsigned.pkg" "${OUTPUT}/podman-installer-macos-${goArch}.pkg"
|
||||||
else
|
else
|
||||||
mv "${OUTPUT}/podman-unsigned.pkg" "${OUTPUT}/podman-installer-macos-${arch}.pkg"
|
mv "${OUTPUT}/podman-unsigned.pkg" "${OUTPUT}/podman-installer-macos-${goArch}.pkg"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue