From 82ea70f44b1cfc7133df6e14f65d4af193395644 Mon Sep 17 00:00:00 2001 From: Cameron Perera Date: Wed, 13 Mar 2024 10:46:22 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20update=20destination=20pa?= =?UTF-8?q?th=20for=20autoUpdater=20workflow=20(#2179)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12878 --- ui/desktop/electron-app/src/helpers/app-updater.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/desktop/electron-app/src/helpers/app-updater.js b/ui/desktop/electron-app/src/helpers/app-updater.js index 280bfba3b..b7a1d0a71 100644 --- a/ui/desktop/electron-app/src/helpers/app-updater.js +++ b/ui/desktop/electron-app/src/helpers/app-updater.js @@ -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 = {