зеркало из https://github.com/electron/electron.git
Remove all spaces from potential appUserModelID as it isn't allowed by the spec
This commit is contained in:
Родитель
c730800f0c
Коммит
12dba2cb67
|
@ -93,8 +93,8 @@ if (process.platform === 'win32') {
|
|||
|
||||
if (fs.statSyncNoException(updateDotExe)) {
|
||||
var packageDir = path.dirname(path.resolve(updateDotExe))
|
||||
var packageName = path.basename(packageDir)
|
||||
var exeName = path.basename(process.execPath).replace(/\.exe$/i, '')
|
||||
var packageName = path.basename(packageDir).replace(/ /g, '')
|
||||
var exeName = path.basename(process.execPath).replace(/\.exe$/i, '').replace(/ /g, '')
|
||||
|
||||
app.setAppUserModelId(`com.squirrel.${packageName}.${exeName}`)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче