mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-02-10 11:40:28 +08:00
fix: configure CJS output for Electron 22 in windows7 build
This commit is contained in:
parent
7aea4af2d0
commit
7b104df463
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -200,6 +200,9 @@ jobs:
|
||||
pnpm add @mihomo-party/sysproxy-win32-${{ matrix.arch }}-msvc
|
||||
pnpm add -D electron@22.3.27
|
||||
(Get-Content electron-builder.yml) -replace 'windows', 'win7' | Set-Content electron-builder.yml
|
||||
# Electron 22 requires CJS format
|
||||
(Get-Content package.json) -replace '"type": "module"', '"type": "commonjs"' | Set-Content package.json
|
||||
(Get-Content electron.vite.config.ts) -replace 'plugins: \[externalizeDepsPlugin\(\)\]', "plugins: [externalizeDepsPlugin()],`n build: { rollupOptions: { output: { format: 'cjs' } } }" | Set-Content electron.vite.config.ts
|
||||
- name: Update Version for Dev Build
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
env:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user