mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
👕
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user