Skip to content

Commit 67fc0a4

Browse files
committed
chore(deps): update dependency electron-builder to v26
1 parent 7d145cb commit 67fc0a4

File tree

4 files changed

+587
-85
lines changed

4 files changed

+587
-85
lines changed

farm.config.ts

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import path from 'node:path';
2+
import { defineConfig } from '@farmfe/core';
3+
import electron from '@farmfe/js-plugin-electron';
4+
import farmPluginPostcss from '@farmfe/js-plugin-postcss';
5+
import solid from 'vite-plugin-solid';
6+
7+
export default defineConfig({
8+
compilation: {
9+
input: {
10+
main: 'renderer/index.html',
11+
settings: 'renderer/settings.html',
12+
lyrics: 'renderer/lyrics.html',
13+
tray: 'renderer/tray.html',
14+
},
15+
output: {
16+
path: 'dist',
17+
},
18+
external: [
19+
'electron',
20+
'@alexssmusica/ffi-napi',
21+
'@alexssmusica/ref-napi',
22+
'@jellybrick/wql-process-monitor',
23+
'mica-electron',
24+
'glasstron',
25+
'hmc-win32',
26+
'extract-file-icon',
27+
],
28+
},
29+
vitePlugins: [
30+
() => ({
31+
vitePlugin: solid(),
32+
filters: ['\\.tsx$', '\\.jsx$']
33+
})
34+
],
35+
plugins: [
36+
electron({
37+
main: {
38+
input: './index.ts',
39+
farm: {
40+
compilation: {
41+
externalNodeBuiltins: true,
42+
external: [
43+
'@alexssmusica/ffi-napi',
44+
'@alexssmusica/ref-napi',
45+
'@jellybrick/wql-process-monitor',
46+
'mica-electron',
47+
'glasstron',
48+
'hmc-win32',
49+
'extract-file-icon',
50+
],
51+
output: {
52+
targetEnv: 'node-next',
53+
path: 'dist',
54+
},
55+
},
56+
},
57+
},
58+
preload: {
59+
input: './src/preload.ts',
60+
farm: {
61+
compilation: {
62+
externalNodeBuiltins: true,
63+
external: [
64+
'hmc-win32',
65+
'font-list',
66+
],
67+
output: {
68+
targetEnv: 'node-next',
69+
path: 'dist',
70+
},
71+
},
72+
},
73+
},
74+
}),
75+
farmPluginPostcss(),
76+
],
77+
});

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
},
230230
"patchedDependencies": {
231231
232-
"app-builder-lib@24.13.3": "patches/app-builder-lib@24.13.3.patch",
232+
"app-builder-lib@26.0.0-alpha.8": "patches/app-builder-lib@26.0.0-alpha.8.patch",
233233
"@malept/flatpak-bundler": "patches/@malept__flatpak-bundler.patch"
234234
}
235235
},
@@ -309,7 +309,8 @@
309309
"del-cli": "6.0.0",
310310
"discord-api-types": "0.37.114",
311311
"electron": "33.2.1",
312-
"electron-builder": "24.13.3",
312+
"electron-builder": "26.0.0-alpha.8",
313+
"electron-builder-squirrel-windows": "26.0.0-alpha.8",
313314
"electron-devtools-installer": "4.0.0",
314315
"electron-vite": "2.3.0",
315316
"esbuild": "0.24.2",
File renamed without changes.

0 commit comments

Comments
 (0)