Skip to content

Commit

Permalink
Merge branch 'main' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan0 committed Oct 30, 2024
2 parents ca40bb1 + 3bd1be7 commit 20b9cf3
Show file tree
Hide file tree
Showing 8 changed files with 11,768 additions and 8,926 deletions.
5 changes: 5 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ files:
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
asarUnpack:
- ./resources/iconTemplate.png
- ./resources/index.html
win:
target:
- target: "nsis"
Expand All @@ -21,6 +22,8 @@ win:
extraFiles:
- from: "./resources/iconTemplate.png"
to: "Resources"
- from: "./resources/index.html"
to: "Resources"
nsis:
oneClick: false
artifactName: ${name}-${version}-${arch}.${ext}
Expand All @@ -45,6 +48,8 @@ mac:
extraFiles:
- from: "./resources/iconTemplate.png"
to: "Resources"
- from: "./resources/index.html"
to: "Resources"
dmg:
artifactName: ${name}-${version}-${arch}.${ext}
npmRebuild: false
Expand Down
9 changes: 7 additions & 2 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ export default defineConfig({
plugins: [externalizeDepsPlugin()]
},
renderer: {
optimizeDeps: {
force: true
build: {
minify: 'terser',
terserOptions: {
compress: {
drop_console: true
}
}
},
resolve: {
alias: {
Expand Down
Loading

0 comments on commit 20b9cf3

Please sign in to comment.