From 3c433863d176cc603d5525c98bfadf26723b21a6 Mon Sep 17 00:00:00 2001 From: Greg Slepak Date: Mon, 10 Jun 2024 11:17:30 -0700 Subject: [PATCH] v2.2.2 - adds linux arm64 --- HISTORY.md | 4 ++++ README.md | 9 +++++---- build/main.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- scripts/binary.js | 4 ++++ scripts/compile.ts | 4 +--- 7 files changed, 18 insertions(+), 11 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 79234b0..1a6e18e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # HISTORY +### v2.2.2 + +- Add arm64 support for Linux platforms. + ### v2.2.1 - Restore `bin/chel` (fixes broken install). See [issue #37](https://github.com/okTurtles/chel/issues/37) for more details and if you'd like to help with this. diff --git a/README.md b/README.md index 67ccd28..21f58a1 100644 --- a/README.md +++ b/README.md @@ -93,10 +93,11 @@ cp -r path/to/contracts/* test/assets/ && ls ./test/assets/*-slim.js | sed -En ' Current release hashes will always be listed here. ``` -fe1de2ce047061b8753c5da4f1511751caafaf786031dd177348f8e58e4bf67c dist/chel-v2.2.1-aarch64-apple-darwin.tar.gz -673ef07c4649564957e922ebdb1d8e454b5f3fcf8a77115eb17b6fe9a075bef6 dist/chel-v2.2.1-x86_64-apple-darwin.tar.gz -af0a1738076666941efbdc755785df898f5046cf7c19c7d93e89d56561b28087 dist/chel-v2.2.1-x86_64-pc-windows-msvc.tar.gz -78a36bbe6f60b6f3583337b21e41c8e1f5e1a6e65368d4116a6e93f12b447563 dist/chel-v2.2.1-x86_64-unknown-linux-gnu.tar.gz +7ef6875b8eefef90aa09e569fc817b17c14c866204d028d5012dd5177e2aef06 dist/chel-v2.2.2-aarch64-apple-darwin.tar.gz +ac01a9a391b7aa7a16af36f59ad4858abed37ef02415a448bf9fc76446ff8207 dist/chel-v2.2.2-aarch64-unknown-linux-gnu.tar.gz +786bf79a1235f5ea3f59238c43be339b91df9d933ab4291fb3bc4dc89c1fd263 dist/chel-v2.2.2-x86_64-apple-darwin.tar.gz +87bf34281997a375347c4ed6ab99b1326d774d9d985f191fa086ed28ef732387 dist/chel-v2.2.2-x86_64-pc-windows-msvc.tar.gz +8e35bcf26d16026b38238c1c835cde16d0bd859ba704c1228c324c151c2742c1 dist/chel-v2.2.2-x86_64-unknown-linux-gnu.tar.gz ``` ## History diff --git a/build/main.js b/build/main.js index 5281494..a0a96e0 100755 --- a/build/main.js +++ b/build/main.js @@ -936,7 +936,7 @@ var verifySignature2 = async (args, internal = false) => { // src/version.ts function version() { - console.log("2.2.1"); + console.log("2.2.2"); } // src/main.ts diff --git a/package-lock.json b/package-lock.json index 29f9dec..7c45366 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@chelonia/cli", - "version": "2.2.0", + "version": "2.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@chelonia/cli", - "version": "2.2.0", + "version": "2.2.2", "hasInstallScript": true, "license": "AGPL-3.0", "dependencies": { diff --git a/package.json b/package.json index ce2e32f..b081e38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chelonia/cli", - "version": "2.2.1", + "version": "2.2.2", "description": "Chelonia Command-line Interface", "main": "src/main.ts", "scripts": { diff --git a/scripts/binary.js b/scripts/binary.js index cfea07b..8b68bb8 100644 --- a/scripts/binary.js +++ b/scripts/binary.js @@ -13,6 +13,10 @@ const supportedPlatforms = { TARGET: 'x86_64-unknown-linux-gnu', BINARY_NAME: 'chel' }, + 'Linux_arm64': { + TARGET: 'aarch64-unknown-linux-gnu', + BINARY_NAME: 'chel' + }, 'Darwin_x64': { TARGET: 'x86_64-apple-darwin', BINARY_NAME: 'chel' diff --git a/scripts/compile.ts b/scripts/compile.ts index 2843936..177dded 100644 --- a/scripts/compile.ts +++ b/scripts/compile.ts @@ -9,9 +9,7 @@ function $ (command: string) { const { default: { version } } = await import('../package.json', { with: { type: "json" } }) export async function compile () { - // NOTE: Apple ARM is slower than x86 on M1! - // https://github.com/denoland/deno/issues/14935 - const archs = ['x86_64-unknown-linux-gnu', 'x86_64-pc-windows-msvc', 'x86_64-apple-darwin', 'aarch64-apple-darwin'] + const archs = ['x86_64-unknown-linux-gnu', 'aarch64-unknown-linux-gnu', 'x86_64-pc-windows-msvc', 'x86_64-apple-darwin', 'aarch64-apple-darwin'] for (const arch of archs) { const dir = `./dist/tmp/${arch}` const bin = arch.includes('windows') ? 'chel.exe' : 'chel'