choavis-agent 1.5.16 → 1.5.17
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 +3 -1
- package/scripts/afterSign.cjs +27 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "choavis-agent",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.17",
|
|
4
4
|
"description": "Slack ↔ Claude Code bridge agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist-electron/main.js",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"build": {
|
|
38
38
|
"appId": "com.choavis.agent",
|
|
39
39
|
"productName": "Choavis Agent Dashboard",
|
|
40
|
+
"afterSign": "scripts/afterSign.cjs",
|
|
40
41
|
"files": [
|
|
41
42
|
"dist-electron/**/*",
|
|
42
43
|
"dist-frontend/**/*",
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
"build:electron": "tsc -p electron/tsconfig.json && node -e \"require('fs').writeFileSync('dist-electron/package.json', JSON.stringify({type:'commonjs'}))\"",
|
|
87
88
|
"start": "electron .",
|
|
88
89
|
"dist:mac": "pnpm run build && electron-builder --mac --publish always",
|
|
90
|
+
"dist:mac:local": "pnpm run build && electron-builder --mac --publish never",
|
|
89
91
|
"test": "vitest run",
|
|
90
92
|
"test:watch": "vitest"
|
|
91
93
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* electron-builder afterSign hook
|
|
3
|
+
* Apple Developer 인증서가 없을 때 ad-hoc 서명으로 재서명하여
|
|
4
|
+
* "code has no resources but signature indicates they must be present" 오류 해결
|
|
5
|
+
*/
|
|
6
|
+
const { execSync } = require('child_process');
|
|
7
|
+
const path = require('path');
|
|
8
|
+
|
|
9
|
+
module.exports = async function afterSign(context) {
|
|
10
|
+
if (process.platform !== 'darwin') return;
|
|
11
|
+
|
|
12
|
+
const { appOutDir, packager } = context;
|
|
13
|
+
const appName = packager.appInfo.productFilename;
|
|
14
|
+
const appPath = path.join(appOutDir, `${appName}.app`);
|
|
15
|
+
const entitlements = path.join(__dirname, '../build/entitlements.mac.plist');
|
|
16
|
+
|
|
17
|
+
console.log(`[afterSign] Ad-hoc 재서명: ${appPath}`);
|
|
18
|
+
try {
|
|
19
|
+
execSync(
|
|
20
|
+
`codesign --sign - --force --deep --entitlements "${entitlements}" "${appPath}"`,
|
|
21
|
+
{ stdio: 'inherit' }
|
|
22
|
+
);
|
|
23
|
+
console.log('[afterSign] 재서명 완료');
|
|
24
|
+
} catch (err) {
|
|
25
|
+
console.error('[afterSign] 재서명 실패:', err.message);
|
|
26
|
+
}
|
|
27
|
+
};
|