Commit 11e92841319cb69efcd6a01851a197cffa0a5d63
Use ARM version
This matters for pkg (Node.js). sodium-native's prebuilds do not specify the ARM version, but it might be useful in the future.cel committed on 12/31/2019, 12:21:50 AM
Parent: 73bf575901a7d56a23cbffa4ddf35aa2c9814156
Files changed
build.js | changed |
build.js | ||
---|---|---|
@@ -7,8 +7,10 @@ | ||
7 | 7 … | |
8 | 8 … | var arch = os.arch() |
9 | 9 … | var platform = os.platform() |
10 | 10 … | var abi = process.versions.modules |
11 … | +var armv = process.env.ARM_VERSION || process.config.variables.arm_version || '' | |
12 … | +if (armv) armv = 'v' + armv | |
11 | 13 … | |
12 | 14 … | process.chdir(__dirname) |
13 | 15 … | mkdirp.sync('dist') |
14 | 16 … | |
@@ -29,16 +31,16 @@ | ||
29 | 31 … | var pkg = proc.spawnSync('pkg', [ |
30 | 32 … | 'bin/git-ssb', |
31 | 33 … | '-c', 'package.json', |
32 | 34 … | '--public', |
33 | - '-t', 'node' + pkgJson.nodeVersion + '-' + platform + '-' + arch, | |
35 … | + '-t', 'node' + pkgJson.nodeVersion + '-' + platform + '-' + arch + armv, | |
34 | 36 … | '-o', 'dist/git-ssb' |
35 | 37 … | ], {stdio: 'inherit'}) |
36 | 38 … | if (pkg.status) process.exit(1) |
37 | 39 … | |
38 | 40 … | process.chdir('dist') |
39 | 41 … | console.log('Compressing...') |
40 | -var tarFile = 'git-ssb-' + pkgJson.version + '-' + platform + '-' + arch + '.tgz' | |
42 … | +var tarFile = 'git-ssb-' + pkgJson.version + '-' + platform + '-' + arch + armv + '.tgz' | |
41 | 43 … | proc.spawnSync('tar', [ |
42 | 44 … | '-czvf', |
43 | 45 … | tarFile, |
44 | 46 … | 'git-remote-ssb', |
Built with git-ssb-web