mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
feat: add new line and rename script file to hydralauncher
This commit is contained in:
parent
b1532a52c8
commit
e88088cca4
@ -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/*"
|
||||
|
@ -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
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user