This commit is contained in:
Wliu
2017-05-11 12:09:38 -04:00
parent 7c2510eb9c
commit adc2bd0a35
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ module.exports = function (packagedAppPath) {
}
}
function signFile(filePath) {
function signFile (filePath) {
const signCommand = path.resolve(__dirname, '..', 'node_modules', 'electron-winstaller', 'vendor', 'signtool.exe')
const args = [ // Changing any of these should also be done in create-windows-installer.js
'sign',

View File

@@ -13,7 +13,7 @@ module.exports = function (aPath) {
const user = (sepIndex < 0) ? aPath.substring(1) : aPath.substring(1, sepIndex)
const rest = (sepIndex < 0) ? '' : aPath.substring(sepIndex)
const home = (user === '') ? os.homedir() : (() => {
const passwd = passwdUser.sync(user);
const passwd = passwdUser.sync(user)
if (passwd === undefined) {
throw new Error(`Failed to expand the tilde in ${aPath} - user "${user}" does not exist`)
}