Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 16, 2021
1 parent be5ed44 commit 2a98c32
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ sign-macos-x64:
sign-macos-aarch64:
gon sign.macos-aarch64.json

release-macos-x64: build-obj jsc-bindings-mac bun-link-lld-release
release-macos-aarch64: build-obj jsc-bindings-mac bun-link-lld-release sign-macos-aarch64
release-macos: build-obj jsc-bindings-mac bun-link-lld-release

bin-dir:
@echo $(BIN_DIR)
Expand Down Expand Up @@ -62,30 +61,33 @@ bump:
build_postinstall:
@esbuild --bundle --format=cjs --platform=node --define:BUN_VERSION="\"$(PACKAGE_JSON_VERSION)\"" packages/bun-cli/scripts/postinstall.ts > packages/bun-cli/postinstall.js

write-package-json-version-cli:
write-package-json-version-cli: build_postinstall
jq -S --raw-output '.version = "${PACKAGE_JSON_VERSION}"' packages/bun-cli/package.json > packages/bun-cli/package.json.new
mv packages/bun-cli/package.json.new packages/bun-cli/package.json

write-package-json-version-arch:
write-package-json-version:
jq -S --raw-output '.version = "${PACKAGE_JSON_VERSION}"' $(PACKAGE_DIR)/package.json > $(PACKAGE_DIR)/package.json.new
mv $(PACKAGE_DIR)/package.json.new $(PACKAGE_DIR)/package.json

tag:
git tag $(BUN_BUILD_TAG)
git push --tags

prepare-release: build_postinstall tag release-create write-package-json-version-arch write-package-json-version-cli
prepare-release: tag release-create write-package-json-version-cli write-package-json-version

release-create:
gh release create --title "Bun v$(PACKAGE_JSON_VERSION)" "$(BUN_BUILD_TAG)"

release-cli-push:
cd packages/bun-cli && npm pack --pack-destination /tmp/
gh release upload $(BUN_BUILD_TAG) --clobber /tmp/bun-cli-$(PACKAGE_JSON_VERSION).tgz
npm publish /tmp/bun-cli-$(PACKAGE_JSON_VERSION).tgz

release-macos-x64-push:
release-mac-push:
cd packages/bun-cli-darwin-x64 && npm pack --pack-destination /tmp/
gh release upload $(BUN_BUILD_TAG) --clobber /tmp/bun-cli-darwin-x64-$(PACKAGE_JSON_VERSION).tgz
npm publish /tmp/bun-cli-darwin-x64-$(PACKAGE_JSON_VERSION).tgz


jsc-copy-headers:
find src/JavaScript/jsc/WebKit/WebKitBuild/Release/JavaScriptCore/Headers/JavaScriptCore/ -name "*.h" -exec cp {} src/JavaScript/jsc/WebKit/WebKitBuild/Release/JavaScriptCore/PrivateHeaders/JavaScriptCore \;
Expand Down
2 changes: 1 addition & 1 deletion build-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
12
2 changes: 1 addition & 1 deletion packages/bun-cli-darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
},
"name": "bun-cli-darwin-x64",
"repository": "https://github.com/jarred-sumner/bun",
"version": "0.0.0-10"
"version": "0.0.0-12"
}
2 changes: 1 addition & 1 deletion packages/bun-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"postinstall": "node postinstall.js",
"prepublishOnly": "rm -rf ./bin/bun; chmod +x ./reset-bin.js; cp ./reset-bin.js ./bin/bun"
},
"version": "0.0.0-10"
"version": "0.0.0-12"
}
2 changes: 1 addition & 1 deletion packages/bun-cli/scripts/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const knownWindowsPackages: Record<string, string> = {
};
const knownUnixlikePackages: Record<string, string> = {
// "android arm64 LE": "bun-cli-android-arm64",
// "darwin arm64 LE": "bun-cli-darwin-arm64",
"darwin arm64 LE": "bun-cli-darwin-aarch64",
"darwin x64 LE": "bun-cli-darwin-x64",
// "freebsd arm64 LE": "bun-cli-freebsd-arm64",
// "freebsd x64 LE": "bun-cli-freebsd-64",
Expand Down

0 comments on commit 2a98c32

Please sign in to comment.