11diff --git a/.env.production b/.env.production
2- index 5b0dcb0..5848ccd 100644
2+ index cc5e2b9..29140f8 100644
33--- a/.env.production
44+++ b/.env.production
55@@ -4,7 +4,7 @@ VITE_DEFAULT_ENGINE_INFOS=`[
@@ -12,10 +12,10 @@ index 5b0dcb0..5848ccd 100644
1212 "host": "http://127.0.0.1:50021"
1313 }
1414diff --git a/electron-builder.config.js b/electron-builder.config.js
15- index 196a0d7..7e313c2 100644
15+ index 10bd7dc..4597b23 100644
1616--- a/electron-builder.config.js
1717+++ b/electron-builder.config.js
18- @@ -37 ,18 +37,7 @@ const isArm64 = process.arch === "arm64";
18+ @@ -38 ,18 +38,6 @@ const isArm64 = process.arch === "arm64";
1919 // cf: https://k-hyoda.hatenablog.com/entry/2021/10/23/000349#%E8%BF%BD%E5%8A%A0%E5%B1%95%E9%96%8B%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%85%88%E3%81%AE%E8%A8%AD%E5%AE%9A
2020 const extraFilePrefix = isMac ? "MacOS/" : "";
2121
@@ -25,7 +25,7 @@ index 196a0d7..7e313c2 100644
2525- // Windows: 7za.exe, Linux: 7zzs, macOS: 7zz
2626- (fileName) => ["7za.exe", "7zzs", "7zz"].includes(fileName),
2727- );
28-
28+ -
2929- if (!sevenZipFile) {
3030- throw new Error(
3131- "7z binary file not found. Run `node ./tools/download7z.js` first.",
@@ -34,7 +34,7 @@ index 196a0d7..7e313c2 100644
3434
3535 /** @type {import("electron-builder").Configuration} */
3636 const builderOptions = {
37- @@ -90 ,14 +79,6 @@ const builderOptions = {
37+ @@ -91 ,14 +79,6 @@ const builderOptions = {
3838 from: "build/README.txt",
3939 to: extraFilePrefix + "README.txt",
4040 },
@@ -49,26 +49,15 @@ index 196a0d7..7e313c2 100644
4949 ],
5050 // electron-builder installer
5151 productName: "VOICEVOX",
52- diff --git a/src/backend/electron/manager/vvppManager.ts b/src/backend/electron/manager/vvppManager.ts
53- index edd3177..22d0114 100644
54- --- a/src/backend/electron/manager/vvppManager.ts
55- +++ b/src/backend/electron/manager/vvppManager.ts
56- @@ -184,16 +184,8 @@ export class VvppManager {
57-
58- const args = ["x", "-o" + outputDir, archiveFile, "-t" + format];
52+ diff --git a/src/backend/electron/vvppFile.ts b/src/backend/electron/vvppFile.ts
53+ index 7e152f1..1aaa8c4 100644
54+ --- a/src/backend/electron/vvppFile.ts
55+ +++ b/src/backend/electron/vvppFile.ts
56+ @@ -220,6 +220,7 @@ export class VvppFileExtractor {
57+ }
5958
60- - let sevenZipPath = import.meta.env.VITE_7Z_BIN_NAME;
61- - if (!sevenZipPath) {
62- - throw new Error("7z path is not defined");
63- - }
64- - if (import.meta.env.PROD) {
65- - sevenZipPath = path.join(
66- - path.dirname(app.getPath("exe")),
67- - sevenZipPath,
68- - );
69- - }
70- + const sevenZipPath = `@sevenzip_path@`;
71- +
72- log.log(
73- "Spawning 7z:",
74- sevenZipPath,
59+ private getSevenZipPath(): string {
60+ + return "@sevenzip_path@";
61+ let sevenZipPath = import.meta.env.VITE_7Z_BIN_NAME;
62+ if (!sevenZipPath) {
63+ throw new Error("7z path is not defined");
0 commit comments