fix windows native uvx (#1775)

This commit is contained in:
Max Novich
2025-03-24 09:50:28 -07:00
committed by GitHub
parent 50c5705d87
commit 41ce428a96
6 changed files with 80 additions and 20 deletions
+1 -5
View File
@@ -1,5 +1,6 @@
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
const { resolve } = require('path');
let cfg = {
asar: true,
@@ -73,19 +74,14 @@ module.exports = {
{
name: '@electron-forge/plugin-vite',
config: {
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
// If you are familiar with Vite configuration, it will look really familiar.
build: [
{
// `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`.
entry: 'src/main.ts',
config: 'vite.main.config.ts',
target: 'main',
},
{
entry: 'src/preload.ts',
config: 'vite.preload.config.ts',
target: 'preload',
},
],
renderer: [