Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

illumos 64-bit support #1562

Merged
merged 1 commit into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ platform-all: cmd/esbuild/version.go test-all
platform-linux-arm64 \
platform-linux-mips64le \
platform-linux-ppc64le \
platform-sunos \
platform-wasm \
platform-neutral \
platform-deno
Expand Down Expand Up @@ -182,6 +183,9 @@ platform-linux-mips64le:
platform-linux-ppc64le:
make GOOS=linux GOARCH=ppc64le NPMDIR=npm/esbuild-linux-ppc64le platform-unixlike

platform-sunos:
make GOOS=illumos GOARCH=amd64 NPMDIR=npm/esbuild-sunos-64 platform-unixlike

platform-wasm: esbuild | scripts/node_modules
cd npm/esbuild-wasm && npm version "$(ESBUILD_VERSION)" --allow-same-version
node scripts/esbuild.js ./esbuild --wasm
Expand Down Expand Up @@ -227,7 +231,8 @@ publish-all: cmd/esbuild/version.go test-prepublish
@read OTP && OTP="$$OTP" make -j4 \
publish-linux-arm64 \
publish-linux-mips64le \
publish-linux-ppc64le
publish-linux-ppc64le \
publish-sunos

# Do these last to avoid race conditions
@echo Enter one-time password:
Expand Down Expand Up @@ -285,6 +290,9 @@ publish-linux-mips64le: platform-linux-mips64le
publish-linux-ppc64le: platform-linux-ppc64le
test -n "$(OTP)" && cd npm/esbuild-linux-ppc64le && npm publish --otp="$(OTP)"

publish-sunos: platform-sunos
test -n "$(OTP)" && cd npm/esbuild-sunos-64 && npm publish --otp="$(OTP)"

publish-wasm: platform-wasm
test -n "$(OTP)" && cd npm/esbuild-wasm && npm publish --otp="$(OTP)"

Expand Down Expand Up @@ -316,6 +324,7 @@ clean:
rm -rf npm/esbuild-linux-arm64/bin
rm -rf npm/esbuild-linux-mips64le/bin
rm -rf npm/esbuild-linux-ppc64le/bin
rm -rf npm/esbuild-sunos-64/bin
rm -f npm/esbuild-wasm/esbuild.wasm npm/esbuild-wasm/wasm_exec.js
rm -rf npm/esbuild/lib
rm -rf npm/esbuild-wasm/lib
Expand Down
1 change: 1 addition & 0 deletions lib/npm/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ const knownUnixlikePackages: Record<string, string> = {
'linux mips64el LE': 'esbuild-linux-mips64le',
'linux ppc64 LE': 'esbuild-linux-ppc64le',
'linux x64 LE': 'esbuild-linux-64',
'sunos x64 LE': 'esbuild-sunos-64',
};

// Pick a package to install
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-sunos-64/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# esbuild

This is the illumos 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
16 changes: 16 additions & 0 deletions npm/esbuild-sunos-64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "esbuild-sunos-64",
"version": "0.12.24",
"description": "The illumos 64-bit binary for esbuild, a JavaScript bundler.",
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"os": [
"sunos"
],
"cpu": [
"x64"
],
"directories": {
"bin": "bin"
}
}