feat: add new line and rename script file to hydralauncher

This commit is contained in:
Zamitto 2024-06-28 09:55:17 -03:00
parent b1532a52c8
commit e88088cca4
3 changed files with 4 additions and 4 deletions

View File

@ -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/*"

View File

@ -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
Set WshShell = Nothing

View File

@ -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 {