diff --git a/electron-builder.yml b/electron-builder.yml index 14454f51..d33428bc 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -8,7 +8,7 @@ extraResources: - from: node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe to: fastlist.exe - from: node_modules/create-desktop-shortcuts/src/windows.vbs - - from: resources/hydra.vbs + - from: resources/hydralauncher.vbs files: - "!**/.vscode/*" - "!src/*" diff --git a/resources/hydra.vbs b/resources/hydralauncher.vbs similarity index 87% rename from resources/hydra.vbs rename to resources/hydralauncher.vbs index 191bddad..ff611acf 100644 --- a/resources/hydra.vbs +++ b/resources/hydralauncher.vbs @@ -1,3 +1,3 @@ Set WshShell = CreateObject("WScript.Shell" ) WshShell.Run """%localappdata%\Programs\Hydra\Hydra.exe""", 0 'Must quote command if it has spaces; must escape quotes -Set WshShell = Nothing \ No newline at end of file +Set WshShell = Nothing diff --git a/src/main/events/user-preferences/auto-launch.ts b/src/main/events/user-preferences/auto-launch.ts index 20482b68..37831db9 100644 --- a/src/main/events/user-preferences/auto-launch.ts +++ b/src/main/events/user-preferences/auto-launch.ts @@ -12,10 +12,10 @@ const autoLaunch = async ( if (!app.isPackaged) return; if (process.platform == "win32") { - const destination = path.join(windowsStartupPath, "hydra.vbs"); + const destination = path.join(windowsStartupPath, "hydralauncher.vbs"); if (enabled) { - const scriptPath = path.join(process.resourcesPath, "hydra.vbs"); + const scriptPath = path.join(process.resourcesPath, "hydralauncher.vbs"); fs.copyFileSync(scriptPath, destination); } else {