The swiss army knife of lossless video/audio editing
Revert "Try to support 32bit win"
Mikael Finstad12e2de06852e
diff --git a/package.json b/package.jsonindex 8c472ca3..9bee3c64 100644--- a/package.json+++ b/package.json@@ -121,22 +121,13 @@"icon": "icon-build/app-512.png"},"win": {- "artifactName": "${productName}-${os}-${arch}.${ext}","target": [- {- "target": "portable",- "arch": [- "x64",- "ia32"- ]- },- {- "target": "zip"- }+ "portable",+ "zip"],"extraResources": ["node_modules/ffmpeg-static/ffmpeg.exe",- "node_modules/ffprobe-static/bin/win32/${arch}/**"+ "node_modules/ffprobe-static/bin/win32/x64/**"],"icon": "icon-build/app-512.png"},diff --git a/src/ffmpeg.js b/src/ffmpeg.jsindex f911ab63..2b4f9e5a 100644--- a/src/ffmpeg.js+++ b/src/ffmpeg.js@@ -34,12 +34,14 @@ function getFfmpegPath() {function getFfprobePath() {const platform = os.platform();- const arch = os.arch();- let subPath;- if (platform === 'darwin') subPath = 'darwin/x64/ffprobe';- else if (platform === 'linux') subPath = 'linux/x64/ffprobe';- else if (platform === 'win32') subPath = `win32/${arch}/ffprobe.exe`;+ const map = {+ darwin: 'darwin/x64/ffprobe',+ win32: 'win32/x64/ffprobe.exe',+ linux: 'linux/x64/ffprobe',+ };++ const subPath = map[platform];if (!subPath) throw new Error(`Unsupported platform ${platform}`);