Revert "Try to support 32bit win"

This reverts commit 8871324279.
pull/276/head
Mikael Finstad 6 years ago
parent 5db672c9cf
commit 12e2de0685

@ -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"
},

@ -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}`);

Loading…
Cancel
Save