Set `--platform linux/amd64` in `make zip_linux_release`

So it works on other architectures (e.g. Apple Silicon)
This commit is contained in:
JP Simard 2023-02-20 17:00:48 -05:00
parent ed6793f8f1
commit 183c0aa784
No known key found for this signature in database
GPG Key ID: 184C3F2916202C58
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ zip_linux: docker_image
zip_linux_release:
$(eval TMP_FOLDER := $(shell mktemp -d))
docker run "ghcr.io/realm/swiftlint:$(VERSION_STRING)" cat /usr/bin/swiftlint > "$(TMP_FOLDER)/swiftlint"
docker run --platform linux/amd64 "ghcr.io/realm/swiftlint:$(VERSION_STRING)" cat /usr/bin/swiftlint > "$(TMP_FOLDER)/swiftlint"
chmod +x "$(TMP_FOLDER)/swiftlint"
cp -f "$(LICENSE_PATH)" "$(TMP_FOLDER)"
(cd "$(TMP_FOLDER)"; zip -yr - "swiftlint" "LICENSE") > "./swiftlint_linux.zip"