Skip to content

Commit 0686ebc

Browse files
committed
ci: stage electron app dir before packaging
The v0.1.1 release failed on all three platforms with "<file> must be under apps/electron/" because electron-builder follows the workspace symlinks under node_modules and gets realpaths outside the app dir. scripts/stage-electron.mjs already handles this locally by physically copying the prod dependency closure into apps/electron/node_modules, but the workflow never invoked it. Add the step before each Package job and bump to 0.1.2.
1 parent 9dced3d commit 0686ebc

7 files changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
working-directory: apps/electron
6161
run: npx tsc
6262

63+
- name: Stage electron app dir
64+
run: node scripts/stage-electron.mjs
65+
6366
- name: Package (macOS)
6467
if: matrix.os == 'macos-latest'
6568
run: npx electron-builder --mac --publish never

apps/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sniff/backend",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"private": true,
55
"type": "module",
66
"main": "./dist/server.js",

apps/electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sniff/electron",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"private": true,
55
"description": "Sniff - LLM-integrated interception proxy",
66
"homepage": "https://github.com/bfaure/sniff",

apps/renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sniff/renderer",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"private": true,
55
"type": "module",
66
"scripts": {

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sniff",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"private": true,
55
"description": "LLM-integrated interception proxy for paired pentesting",
66
"workspaces": [

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sniff/shared",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"private": true,
55
"type": "module",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)