diff options
author | 2021-10-27 01:42:50 -0700 | |
---|---|---|
committer | 2021-10-27 01:42:50 -0700 | |
commit | 826db9021eea6d7750202c8a62dd775818948513 (patch) | |
tree | c6698eb9cbc4d4929173b414bc35f76f1dd7cd28 | |
parent | ad6127962182e87c9274877bfa21c06365038595 (diff) | |
download | bun-826db9021eea6d7750202c8a62dd775818948513.tar.gz bun-826db9021eea6d7750202c8a62dd775818948513.tar.zst bun-826db9021eea6d7750202c8a62dd775818948513.zip |
Before publishing the binary to npm, verify it installs successfully and it's the expected version
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | entitlements.plist | 4 | ||||
-rw-r--r-- | src/runtime.version | 2 |
3 files changed, 9 insertions, 7 deletions
@@ -301,7 +301,7 @@ BUN_LLD_FLAGS = $(OBJ_FILES) \ $(PLATFORM_LINKER_FLAGS) -bun: vendor build-obj bun-link-lld-release release-bin-entitlements +bun: vendor build-obj bun-link-lld-release vendor-without-check: api analytics node-fallbacks runtime_js fallback_decoder bun_error mimalloc picohttp zlib openssl s2n libarchive @@ -520,7 +520,7 @@ ifeq ($(OS_NAME),darwin) # strip will remove the entitlements.plist # which, in turn, will break JIT release-bin-entitlements: - codesign --entitlements $(realpath entitlements.plist) --options runtime --force --timestamp --sign $(CODESIGN_IDENTITY) -vvv --deep --strict $(BIN_DIR)/bun + codesign --entitlements $(realpath entitlements.plist) --options runtime --force --timestamp --sign "$(CODESIGN_IDENTITY)" -vvv --deep --strict $(BIN_DIR)/bun endif release-bin-codesign: @@ -532,11 +532,13 @@ release-bin-codesign: release-bin-notarize: xcrun notarytool submit $(BIN_DIR)/bun -release-bin: release-bin-generate release-bin-check release-bin-push +release-bin: test-all release-bin-generate release-bin-check release-bin-push release-bin-check: + rm -rf /tmp/bun-$(PACKAGE_JSON_VERSION)-check; mkdir -p /tmp/bun-$(PACKAGE_JSON_VERSION)-check; - cd /tmp/bun-$(PACKAGE_JSON_VERSION)-check && npm install $(BUN_DEPLOY_TGZ) && ./node_modules/.bin/bun --version + cd /tmp/bun-$(PACKAGE_JSON_VERSION)-check && npm install $(BUN_DEPLOY_TGZ) + test $(PACKAGE_JSON_VERSION) == $(shell eval "/tmp/bun-$(PACKAGE_JSON_VERSION)-check/node_modules/.bin/bun --version") release-bin-push: gh release upload $(BUN_BUILD_TAG) --clobber $(BUN_DEPLOY_TGZ) diff --git a/entitlements.plist b/entitlements.plist index df7c505e6..29677e891 100644 --- a/entitlements.plist +++ b/entitlements.plist @@ -10,5 +10,5 @@ <true/> <key>com.apple.security.network.client</key> <true/> - </dict> - </plist>
\ No newline at end of file +</dict> +</plist>
\ No newline at end of file diff --git a/src/runtime.version b/src/runtime.version index 6eb1fbb2a..ccfdfb532 100644 --- a/src/runtime.version +++ b/src/runtime.version @@ -1 +1 @@ -d0564ad3b9e88744
\ No newline at end of file +7be53da538434cb0
\ No newline at end of file |