windows-installer
windows-installer copied to clipboard
is it possible codesign windows installer on OSX?
const electronInstaller = require('electron-winstaller');
const path = require('path');
const fs = require('fs');
const appDirectory = 'foo'
const outputDirectory = 'foo'
const loadingGif = 'foo'
const setupIcon = 'foo'
const iconUrl = 'foo'
const certificateFile = '%SOME_PATH%' // i'm using .pfx file
resultPromise = electronInstaller.createWindowsInstaller({
appDirectory,
outputDirectory,
loadingGif,
setupIcon,
iconUrl,
name: "FOO",
description: "FOO",
authors: 'COM',
exe: 'FOO.exe',
setupExe: 'FOO.exe',
certificateFile: certificateFile,
certificatePassword: 'XXXXX'
});
- i'm using .pfx file
error stacktrace
No dice: Failed with exit code: 255
Output:
System.AggregateException: One or more errors occurred. ---> System.Exception: Failed to sign, command invoked was: '/Users/baegjaehyeon/Code/work/desktop/xxxx-desktop/node_modules/electron-winstaller/vendor/signtool.exe sign /a /f "/Users/baegjaehyeon/certificate/xxxx.co.kr.pfx" /p "xxxx" /Users/baegjaehyeon/.local/share/SquirrelTemp/tempa/lib/net45/libEGL.dll'
(...)
i think, beacuse of this library using 'signtool.exe', i have this problem. is it possible codesigning on osx?
i just solved problem using codesign
in mono
@holdonnn are you signing the update.exe?
Only electron-builder correctly sign Windows on macOS. User cannot do post code sign because some exe files are zipped during build. And, so, you need to change it in the Squirrel.Windows.
@holdonnn how can you reproduce using codesign in mono?