@min-pack/qjs-ng 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin.sh +9 -0
- package/package.json +12 -6
- package/qjs-linux-aarch64 +0 -0
- package/qjs-linux-x86_64 +0 -0
- package/qjs-ng.info +3 -5
- package/bin.js +0 -16
- package/bin.qjsc.js +0 -4
- package/qjs-linux-amd64 +0 -0
- package/qjs-linux-x64 +0 -0
- package/qjsc-linux-amd64 +0 -0
- package/qjsc-linux-x64 +0 -0
package/README.md
CHANGED
package/bin.sh
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
OS="$(uname -s)"
|
|
4
|
+
ARCH="$(uname -m)"
|
|
5
|
+
DIR="$(dirname "$(realpath "$0")")"
|
|
6
|
+
if [[ "$OS" == "Linux" && "$ARCH" == "x86_64" ]]; then exec "$DIR/qjs-linux-x86_64" "$@"
|
|
7
|
+
elif [[ "$OS" == "Linux" && "$ARCH" == "aarch64" ]]; then exec "$DIR/qjs-linux-aarch64" "$@"
|
|
8
|
+
else echo "no binary for $OS-$ARCH" >&2; exit 1
|
|
9
|
+
fi
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@min-pack/qjs-ng",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Latest 'qjs'
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Latest 'qjs' binaries from 'quickjs-ng'",
|
|
5
5
|
"bin": {
|
|
6
|
-
"qjs-ng": "bin.
|
|
7
|
-
"qjs": "bin.
|
|
8
|
-
"qjsc": "bin.qjsc.js"
|
|
6
|
+
"qjs-ng": "bin.sh",
|
|
7
|
+
"qjs": "bin.sh"
|
|
9
8
|
},
|
|
9
|
+
"os": [
|
|
10
|
+
"linux"
|
|
11
|
+
],
|
|
12
|
+
"cpu": [
|
|
13
|
+
"x64",
|
|
14
|
+
"arm64"
|
|
15
|
+
],
|
|
10
16
|
"config": {
|
|
11
|
-
"RELEASE_NAME": "v0.
|
|
17
|
+
"RELEASE_NAME": "v0.15.1"
|
|
12
18
|
}
|
|
13
19
|
}
|
|
Binary file
|
package/qjs-linux-x86_64
ADDED
|
Binary file
|
package/qjs-ng.info
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
v0.
|
|
2
|
-
https://github.com/quickjs-ng/quickjs/releases/download/v0.
|
|
3
|
-
https://github.com/quickjs-ng/quickjs/releases/download/v0.
|
|
4
|
-
https://github.com/quickjs-ng/quickjs/releases/download/v0.12.1/qjsc-linux-aarch64
|
|
5
|
-
https://github.com/quickjs-ng/quickjs/releases/download/v0.12.1/qjsc-linux-x86_64
|
|
1
|
+
v0.15.1
|
|
2
|
+
e50811a33194f2ee1fd7bbae3592dbbf295204036d0036039cf5869dff7ed9c0 https://github.com/quickjs-ng/quickjs/releases/download/v0.15.1/qjs-linux-aarch64
|
|
3
|
+
c015660c38e7960669b112dafa3740cd6ce29b3d42066a64da1bd042fbccac07 https://github.com/quickjs-ng/quickjs/releases/download/v0.15.1/qjs-linux-x86_64
|
package/bin.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const RUNTIME = `${process.platform}-${process.arch}`
|
|
4
|
-
if (![ 'linux-x64', 'linux-amd64' ].includes(RUNTIME)) {
|
|
5
|
-
console.error(`bad RUNTIME: ${RUNTIME}`)
|
|
6
|
-
process.exit(-1)
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const { resolve } = require('node:path')
|
|
10
|
-
const { spawnSync } = require('node:child_process')
|
|
11
|
-
const [
|
|
12
|
-
, // node
|
|
13
|
-
, // script
|
|
14
|
-
...extraArgs
|
|
15
|
-
] = process.argv
|
|
16
|
-
spawnSync(resolve(__dirname, `${global.QJS_NG_BIN || 'qjs'}-${RUNTIME}`), extraArgs, { stdio: 'inherit' })
|
package/bin.qjsc.js
DELETED
package/qjs-linux-amd64
DELETED
|
Binary file
|
package/qjs-linux-x64
DELETED
|
Binary file
|
package/qjsc-linux-amd64
DELETED
|
Binary file
|
package/qjsc-linux-x64
DELETED
|
Binary file
|