git ssb

38+

cel / git-ssb



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.jschanged
build.jsView
@@ -7,8 +7,10 @@
77
88 var arch = os.arch()
99 var platform = os.platform()
1010 var abi = process.versions.modules
11 +var armv = process.env.ARM_VERSION || process.config.variables.arm_version || ''
12 +if (armv) armv = 'v' + armv
1113
1214 process.chdir(__dirname)
1315 mkdirp.sync('dist')
1416
@@ -29,16 +31,16 @@
2931 var pkg = proc.spawnSync('pkg', [
3032 'bin/git-ssb',
3133 '-c', 'package.json',
3234 '--public',
33- '-t', 'node' + pkgJson.nodeVersion + '-' + platform + '-' + arch,
35 + '-t', 'node' + pkgJson.nodeVersion + '-' + platform + '-' + arch + armv,
3436 '-o', 'dist/git-ssb'
3537 ], {stdio: 'inherit'})
3638 if (pkg.status) process.exit(1)
3739
3840 process.chdir('dist')
3941 console.log('Compressing...')
40-var tarFile = 'git-ssb-' + pkgJson.version + '-' + platform + '-' + arch + '.tgz'
42 +var tarFile = 'git-ssb-' + pkgJson.version + '-' + platform + '-' + arch + armv + '.tgz'
4143 proc.spawnSync('tar', [
4244 '-czvf',
4345 tarFile,
4446 'git-remote-ssb',

Built with git-ssb-web