Skip to content

Commit 42c13c6

Browse files
authored
Fix build plugins macos codesiging error (#576)
Co-authored-by: Hien To <[email protected]>
1 parent b1bb288 commit 42c13c6

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/jan-electron-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
run: |
6161
yarn build:core
6262
yarn install
63-
yarn build:plugins
63+
yarn build:plugins-darwin
6464
env:
6565
APP_PATH: "."
6666
DEVELOPER_ID: ${{ secrets.DEVELOPER_ID }}
@@ -119,7 +119,7 @@ jobs:
119119
yarn config set network-timeout 300000
120120
yarn build:core
121121
yarn install
122-
yarn build:plugins
122+
yarn build:plugins-linux-windows
123123
124124
- name: Build and publish app
125125
run: |
@@ -175,7 +175,7 @@ jobs:
175175
yarn config set network-timeout 300000
176176
yarn build:core
177177
yarn install
178-
yarn build:plugins
178+
yarn build:plugins-linux-windows
179179
180180
- name: Build and publish app
181181
run: |

.github/workflows/jan-electron-linter-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
yarn config set network-timeout 300000
9393
yarn build:core
9494
yarn install
95-
yarn build:plugins
95+
yarn build:plugins-linux-windows
9696
yarn build:test-win32
9797
yarn test
9898
@@ -127,6 +127,6 @@ jobs:
127127
yarn config set network-timeout 300000
128128
yarn build:core
129129
yarn install
130-
yarn build:plugins
130+
yarn build:plugins-linux-windows
131131
yarn build:test-linux
132132
yarn test

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"build:electron:test": "yarn workspace jan build:test",
3838
"build:pull-plugins": "rimraf ./electron/core/pre-install/*.tgz && cd ./electron/core/pre-install && npm pack @janhq/inference-plugin @janhq/monitoring-plugin",
3939
"build:plugins": "rimraf ./electron/core/pre-install/*.tgz && concurrently --kill-others-on-fail \"cd ./plugins/conversational-json && npm install && npm run postinstall && npm run build:publish\" \"cd ./plugins/inference-plugin && npm install --ignore-scripts && npm run postinstall:dev && npm run build:publish\" \"cd ./plugins/model-plugin && npm install && npm run postinstall && npm run build:publish\" \"cd ./plugins/monitoring-plugin && npm install && npm run postinstall && npm run build:publish\"",
40+
"build:plugins-linux-windows": "rimraf ./electron/core/pre-install/*.tgz && concurrently --kill-others-on-fail \"cd ./plugins/conversational-json && npm install && npm run postinstall && npm run build:publish\" \"cd ./plugins/inference-plugin && npm install && npm run postinstall && npm run build:publish\" \"cd ./plugins/model-plugin && npm install && npm run postinstall && npm run build:publish\" \"cd ./plugins/monitoring-plugin && npm install && npm run postinstall && npm run build:publish\"",
41+
"build:plugins-darwin": "rimraf ./electron/core/pre-install/*.tgz && concurrently --kill-others-on-fail \"cd ./plugins/conversational-json && npm install && npm run postinstall && npm run build:publish\" \"cd ./plugins/inference-plugin && npm install && npm run postinstall && ../../.github/scripts/auto-sign.sh && npm run build:publish\" \"cd ./plugins/model-plugin && npm install && npm run postinstall && npm run build:publish\" \"cd ./plugins/monitoring-plugin && npm install && npm run postinstall && npm run build:publish\"",
4042
"build:plugins-web": "rimraf ./electron/core/pre-install/*.tgz && concurrently --kill-others-on-fail \"cd ./plugins/conversational-json && npm install && npm run build:deps && npm run postinstall\" \"cd ./plugins/inference-plugin && npm install && npm run postinstall\" \"cd ./plugins/model-plugin && npm install && npm run postinstall\" \"cd ./plugins/monitoring-plugin && npm install && npm run postinstall\" && concurrently --kill-others-on-fail \"cd ./plugins/conversational-json && npm run build:publish\" \"cd ./plugins/inference-plugin && npm run build:publish\" \"cd ./plugins/model-plugin && npm run build:publish\" \"cd ./plugins/monitoring-plugin && npm run build:publish\"",
4143
"build": "yarn build:web && yarn build:electron",
4244
"build:test": "yarn build:web && yarn build:electron:test",

0 commit comments

Comments
 (0)