Skip to content

Commit

Permalink
Merge pull request #38 from okTurtles/linux-arm64
Browse files Browse the repository at this point in the history
v2.2.2 - adds linux arm64
  • Loading branch information
taoeffect authored Jun 10, 2024
2 parents c431a93 + 3c43386 commit 0dc2d58
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 4 additions & 0 deletions scripts/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 1 addition & 3 deletions scripts/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 0dc2d58

Please sign in to comment.