Skip to content

Commit

Permalink
Create windows shortcut script
Browse files Browse the repository at this point in the history
  • Loading branch information
harrellbm committed Apr 24, 2021
1 parent afa1b8e commit ea1ff46
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ debug.log
Projects/Superalgos/Icons/Thumbs.db
*.bat
!launch-windows.bat
!create-shortcut-windows.bat
*.exe

9 changes: 9 additions & 0 deletions GUI-Launch/create-shortcut-windows.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set TARGET='%CD%\launch-windows.bat'
set SHORTCUT='%USERPROFILE%\Desktop\Superalgos.lnk'
set ICON='%CD%\superalgos.ico'
set PWS=powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile

%PWS% -Command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut(%SHORTCUT%); $S.TargetPath = %Target%; $S.IconLocation = %ICON%; $S.Save()"

#Keep terminal open for debug
#cmd /k echo "keep open"
2 changes: 2 additions & 0 deletions launch-windows.bat → GUI-Launch/launch-windows.bat
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
cd %~dp0
cd ..
cmd /k "node run"
Binary file added GUI-Launch/superalgos.ico
Binary file not shown.

0 comments on commit ea1ff46

Please sign in to comment.