gitlocker 1.0.2 → 1.0.4
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/THIRD_PARTY_NOTICES.md +1783 -1981
- package/bin/gitlocker.js +11 -2
- package/package.json +4 -3
package/bin/gitlocker.js
CHANGED
|
@@ -26,8 +26,17 @@ function getPlatformPackage() {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
if (platform === 'darwin') {
|
|
30
|
+
if (arch === 'arm64') {
|
|
31
|
+
return '@git-braints/cli-darwin-arm64';
|
|
32
|
+
} else {
|
|
33
|
+
console.error(`[GitLocker] Unsupported architecture on macOS: ${arch}. GitLocker currently only supports macOS arm64.`);
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
29
38
|
console.error(`[GitLocker] Unsupported platform: ${platform}.`);
|
|
30
|
-
console.error(`GitLocker npm distribution currently only supports Windows (win32-x64)
|
|
39
|
+
console.error(`GitLocker npm distribution currently only supports Windows (win32-x64), Linux (linux-x64) and macOS (darwin-arm64) in this build.`);
|
|
31
40
|
console.error(`For other platforms, please compile GitLocker from source or download from GitHub Releases.`);
|
|
32
41
|
process.exit(1);
|
|
33
42
|
}
|
|
@@ -60,7 +69,7 @@ try {
|
|
|
60
69
|
// 非 Windows 平台需要赋予执行权限
|
|
61
70
|
if (!isWin) {
|
|
62
71
|
try {
|
|
63
|
-
fs.chmodSync(binaryPath,
|
|
72
|
+
fs.chmodSync(binaryPath, 0o755);
|
|
64
73
|
} catch (e) {
|
|
65
74
|
// 忽略可能的权限变更失败
|
|
66
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gitlocker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Git repository encryption with pluggable key providers",
|
|
5
5
|
"main": "bin/gitlocker.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"author": "GitBraints",
|
|
27
27
|
"license": "AGPL-3.0-or-later",
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@git-braints/cli-
|
|
30
|
-
"@git-braints/cli-
|
|
29
|
+
"@git-braints/cli-darwin-arm64": "1.0.4",
|
|
30
|
+
"@git-braints/cli-linux-x64": "1.0.4",
|
|
31
|
+
"@git-braints/cli-win32-x64": "1.0.4"
|
|
31
32
|
}
|
|
32
33
|
}
|