fix: 🐛 update destination path for autoUpdater workflow (#2179)
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12878
This commit is contained in:
1 parent
0bb72040db
commit
82ea70f44b
1 file changed
+3
-3
@@ -62,10 +62,10 @@ const createAppUpdaterConfig = (url, version, destination) => {
|
||||
};
|
||||
|
||||
const downloadAndInstallUpdate = async (version, url) => {
|
||||
const destination = path.resolve(__dirname, '..', 'nextVersion');
|
||||
if (!fs.existsSync(destination)) fs.mkdirSync(destination);
|
||||
|
||||
try {
|
||||
const destination = path.resolve(process.resourcesPath, 'nextVersion');
|
||||
if (!fs.existsSync(destination)) fs.mkdirSync(destination);
|
||||
|
||||
const configPath = createAppUpdaterConfig(url, version, destination);
|
||||
autoUpdater.on('update-downloaded', () => {
|
||||
const dialogOpts = {
|
||||
|
||||
Reference in new issue
Block a user