@min-pack/ss-rust 0.0.1

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 ADDED
@@ -0,0 +1,3 @@
1
+ # @min-pack/ss-rust
2
+
3
+ Latest `ssservice` binaries from [shadowsocks-rust](https://github.com/shadowsocks/shadowsocks-rust/)
package/bin.js ADDED
@@ -0,0 +1,16 @@
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, `ssservice-${RUNTIME}`), extraArgs, { stdio: 'inherit' })
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@min-pack/ss-rust",
3
+ "version": "0.0.1",
4
+ "description": "Latest 'ssservice' binaries from 'shadowsocks-rust'",
5
+ "bin": {
6
+ "ss-rust": "bin.js",
7
+ "ssservice": "bin.js",
8
+ "SSRS": "bin.js"
9
+ },
10
+ "config": {
11
+ "RELEASE_NAME": "v1.15.3"
12
+ }
13
+ }
Binary file
Binary file
package/ssservice.info ADDED
@@ -0,0 +1 @@
1
+ v1.15.3