From 251022ba6c601c3dd313df9312565725f5963649 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Wed, 22 Oct 2025 23:25:46 +0800 Subject: [PATCH] upgrade to electron 38 --- README.md | 2 +- electron.vite.config.ts | 6 +++--- package.json | 2 +- yarn.lock | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6eb55a97..2d2b09d5 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ For Linux these are some alternatives: If you prefer to download the executables manually, this will of course always be free (see also [supported operating systems](./requirements.md)): - macOS: [Intel](https://github.com/mifi/lossless-cut/releases/latest/download/LosslessCut-mac-x64.dmg) / [Apple Silicon](https://github.com/mifi/lossless-cut/releases/latest/download/LosslessCut-mac-arm64.dmg) DMG (note that PKG does **not** work) -- Windows: [7zip](https://github.com/mifi/lossless-cut/releases/latest/download/LosslessCut-win-x64.7z) (Windows 7, 8 and 8.1 is [no longer supported](https://github.com/mifi/lossless-cut/discussions/1476) after [v3.50.0](https://github.com/mifi/lossless-cut/releases/tag/v3.50.0)) +- Windows: [7zip](https://github.com/mifi/lossless-cut/releases/latest/download/LosslessCut-win-x64.7z) (Windows 7, 8 and 8.1 is [no longer supported after v3.50.0](./requirements.md)) - Linux: [x64 tar.bz2](https://github.com/mifi/lossless-cut/releases/latest/download/LosslessCut-linux-x64.tar.bz2) / [x64 AppImage](https://github.com/mifi/lossless-cut/releases/latest/download/LosslessCut-linux-x86_64.AppImage) / [arm64 tar.bz2](https://github.com/mifi/lossless-cut/releases/latest/download/LosslessCut-linux-arm64.tar.bz2) / [Raspberry Pi armv7l](https://github.com/mifi/lossless-cut/releases/latest/download/LosslessCut-linux-armv7l.tar.bz2) - [More releases](https://github.com/mifi/lossless-cut/releases) - Note that APPX (Windows) and PKG (macOS) do **not** work) - [Latest nightly builds 🧪](https://mifi.no/llc/nightly/) diff --git a/electron.vite.config.ts b/electron.vite.config.ts index 539b498c..5e0dbf9b 100644 --- a/electron.vite.config.ts +++ b/electron.vite.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ // However, until we use ESM for electron main, we need to include ESM-only deps in the bundle: (exclude from externalize) plugins: [externalizeDepsPlugin({ exclude: ['p-map', 'execa', 'nanoid', 'file-type'] })], build: { - target: 'node22.14', + target: 'node22.18', sourcemap: true, }, }, @@ -17,14 +17,14 @@ export default defineConfig({ // https://electron-vite.org/guide/dev#dependencies-vs-devdependencies plugins: [externalizeDepsPlugin({ exclude: [] })], build: { - target: 'node22.14', + target: 'node22.18', sourcemap: true, }, }, renderer: { plugins: [react()], build: { - target: 'chrome134', + target: 'chrome140', sourcemap: true, chunkSizeWarningLimit: 3e6, }, diff --git a/package.json b/package.json index 892e0fec..010637d7 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "csv-parse": "^5.6.0", "csv-stringify": "^6.5.2", "data-uri-to-buffer": "^4.0.0", - "electron": "^37.3.1", + "electron": "^38.3.0", "electron-builder": "^24.13.3", "electron-devtools-installer": "^3.2.0", "electron-vite": "^2.3.0", diff --git a/yarn.lock b/yarn.lock index 09ba5585..3f03a926 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4630,16 +4630,16 @@ __metadata: languageName: node linkType: hard -"electron@npm:^37.3.1": - version: 37.3.1 - resolution: "electron@npm:37.3.1" +"electron@npm:^38.3.0": + version: 38.3.0 + resolution: "electron@npm:38.3.0" dependencies: "@electron/get": "npm:^2.0.0" "@types/node": "npm:^22.7.7" extract-zip: "npm:^2.0.1" bin: electron: cli.js - checksum: 10/72d75428d1c436ac2ffba4c84967ad29f8222850c2e8a6d75b16840b04659c5746ec582c138190240f6f5485e6ff67b7507d7e14c729bfcbfd5fdd08f2ea4731 + checksum: 10/e605348760a682e8052d316051290128f9eee956d27757ab77d6672436d6dc15885a86b2bfff64b7e03a6ecfd1c7be055ad4a25c03e6c156a7adae4fa136d3b0 languageName: node linkType: hard @@ -7760,7 +7760,7 @@ __metadata: csv-stringify: "npm:^6.5.2" cue-parser: "npm:^0.3.0" data-uri-to-buffer: "npm:^4.0.0" - electron: "npm:^37.3.1" + electron: "npm:^38.3.0" electron-builder: "npm:^24.13.3" electron-devtools-installer: "npm:^3.2.0" electron-store: "npm:5.1.1"