为 OS X 构建,托管在 github 上。
有几个版本我productName
从更改testTimer
为Test Timer
.
我预计下一个版本的自动更新会失败,因为testTimer.app
它将变为Test Timer.app
. 但是,自从名称更改以来,我现在进行了几次更新,并且自动更新程序在以下情况下仍然失败autoUpdater.quitAndInstall()
:
Error: Error: ENOENT: no such file or directory, lstat '/Applications/testTimer.app'
at fs.lstatSync (fs.js:902:18)
at Object.fs.lstatSync (ELECTRON_ASAR.js:244:16)
我猜旧的应用程序名称缓存在某处,但不确定在哪里以及如何更新。在代码库中搜索旧名称不会返回任何内容。