@ingit/cli 0.1.2 → 0.1.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/bin/ingit.cjs +12 -1
- package/package.json +5 -5
package/bin/ingit.cjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// resolves the binary that matches the current OS/arch and execs it.
|
|
7
7
|
|
|
8
8
|
const { spawnSync } = require('node:child_process')
|
|
9
|
-
const { existsSync } = require('node:fs')
|
|
9
|
+
const { chmodSync, existsSync } = require('node:fs')
|
|
10
10
|
const { join } = require('node:path')
|
|
11
11
|
|
|
12
12
|
const platform = process.platform
|
|
@@ -36,6 +36,17 @@ try {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
// GitHub Actions artifacts do not preserve executable bits. Repair the mode in
|
|
40
|
+
// case the platform package was published from a downloaded artifact.
|
|
41
|
+
if (platform !== 'win32') {
|
|
42
|
+
try {
|
|
43
|
+
chmodSync(binPath, 0o755)
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.error(`ingit: failed to make the binary executable: ${error.message}`)
|
|
46
|
+
process.exit(1)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
39
50
|
const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' })
|
|
40
51
|
|
|
41
52
|
if (result.error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ingit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Local git history & graph viewer in your browser",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ingit": "bin/ingit.cjs"
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@ingit/cli-linux-x64": "0.1.
|
|
14
|
-
"@ingit/cli-linux-arm64": "0.1.
|
|
15
|
-
"@ingit/cli-darwin-x64": "0.1.
|
|
16
|
-
"@ingit/cli-darwin-arm64": "0.1.
|
|
13
|
+
"@ingit/cli-linux-x64": "0.1.3",
|
|
14
|
+
"@ingit/cli-linux-arm64": "0.1.3",
|
|
15
|
+
"@ingit/cli-darwin-x64": "0.1.3",
|
|
16
|
+
"@ingit/cli-darwin-arm64": "0.1.3"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"engines": {
|