Skip to content

Commit 287b542

Browse files
committed
fix(desktop-app): Restore core dependency and update build config
- Restored @munlicode/munliwall-core to desktop-app dependencies. - Updated pnpm-lock.yaml. - Switched electron-builder publish provider to GitHub. - Updated build-linux.js to accept CLI args.
1 parent 9af85ed commit 287b542

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

packages/desktop-app/build-linux.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ const path = require('path');
44

55
const pkgPath = path.resolve(__dirname, 'package.json');
66

7+
// Capture additional arguments passed to the script (e.g., --publish always)
8+
const args = process.argv.slice(2).join(' ');
9+
710
try {
811
// 1. Build
912
console.log('Running electron-vite build...');
@@ -29,8 +32,8 @@ try {
2932

3033
try {
3134
// 4. Pack
32-
console.log('Running electron-builder --linux...');
33-
execSync('npx electron-builder --linux', { stdio: 'inherit', cwd: __dirname });
35+
console.log(`Running electron-builder --linux ${args}...`);
36+
execSync(`npx electron-builder --linux ${args}`, { stdio: 'inherit', cwd: __dirname });
3437
} catch (e) {
3538
console.error('Build failed.');
3639
throw e;

packages/desktop-app/electron-builder.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ deb:
5454
artifactName: ${productName}-${version}.${ext}
5555
npmRebuild: false
5656
publish:
57-
provider: generic
58-
url: https://example.com/auto-updates
57+
provider: github
58+
owner: munlicode
59+
repo: munliwall

packages/desktop-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"release:linux": "node build-linux.js --publish always"
2323
},
2424
"dependencies": {
25+
"@munlicode/munliwall-core": "workspace:*",
2526
"axios": "^1.13.1",
2627
"conf": "^15.0.2",
2728
"electron-updater": "^6.3.9",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)