@dmsdc-ai/aterm 0.2.8 → 0.2.10
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/package.json +2 -2
- package/scripts/postinstall.js +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dmsdc-ai/aterm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Native aterm launcher package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./bin/aterm.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"package.json"
|
|
18
18
|
],
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@dmsdc-ai/aterm-darwin-arm64": "0.2.
|
|
20
|
+
"@dmsdc-ai/aterm-darwin-arm64": "0.2.10"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@dmsdc-ai/aigentry-devkit": ">=0.0.19",
|
package/scripts/postinstall.js
CHANGED
|
@@ -144,6 +144,17 @@ function installNativeBundle() {
|
|
|
144
144
|
fs.mkdirSync(path.dirname(targetApp), { recursive: true });
|
|
145
145
|
fs.cpSync(sourceApp, targetApp, { recursive: true });
|
|
146
146
|
|
|
147
|
+
// Remove Gatekeeper quarantine attributes on the unsigned bundle so
|
|
148
|
+
// macOS does not refuse to launch it with "damaged app" on first run.
|
|
149
|
+
// Best-effort — failure is non-fatal and the user can run the same
|
|
150
|
+
// command manually if needed.
|
|
151
|
+
try {
|
|
152
|
+
const { execFileSync } = require('node:child_process');
|
|
153
|
+
execFileSync('xattr', ['-cr', targetApp], { stdio: 'ignore' });
|
|
154
|
+
} catch {
|
|
155
|
+
// xattr absence or permission denial — leave quarantine in place.
|
|
156
|
+
// User can run `xattr -cr <path>` manually if Gatekeeper blocks launch.
|
|
157
|
+
}
|
|
147
158
|
}
|
|
148
159
|
|
|
149
160
|
function runDevkitBootstrap() {
|