mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 19:22:28 +00:00
feat: add new line and rename script file to hydralauncher
This commit is contained in:
parent
b1532a52c8
commit
e88088cca4
3 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@ extraResources:
|
||||||
- from: node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe
|
- from: node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe
|
||||||
to: fastlist.exe
|
to: fastlist.exe
|
||||||
- from: node_modules/create-desktop-shortcuts/src/windows.vbs
|
- from: node_modules/create-desktop-shortcuts/src/windows.vbs
|
||||||
- from: resources/hydra.vbs
|
- from: resources/hydralauncher.vbs
|
||||||
files:
|
files:
|
||||||
- "!**/.vscode/*"
|
- "!**/.vscode/*"
|
||||||
- "!src/*"
|
- "!src/*"
|
||||||
|
|
|
@ -12,10 +12,10 @@ const autoLaunch = async (
|
||||||
if (!app.isPackaged) return;
|
if (!app.isPackaged) return;
|
||||||
|
|
||||||
if (process.platform == "win32") {
|
if (process.platform == "win32") {
|
||||||
const destination = path.join(windowsStartupPath, "hydra.vbs");
|
const destination = path.join(windowsStartupPath, "hydralauncher.vbs");
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
const scriptPath = path.join(process.resourcesPath, "hydra.vbs");
|
const scriptPath = path.join(process.resourcesPath, "hydralauncher.vbs");
|
||||||
|
|
||||||
fs.copyFileSync(scriptPath, destination);
|
fs.copyFileSync(scriptPath, destination);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue