diff --git a/.gitignore b/.gitignore index 24209be6ed..97e52a99b3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,6 @@ debug.log Projects/Superalgos/Icons/Thumbs.db *.bat !launch-windows.bat +!create-shortcut-windows.bat *.exe diff --git a/GUI-Launch/create-shortcut-windows.bat b/GUI-Launch/create-shortcut-windows.bat new file mode 100644 index 0000000000..8074f5e723 --- /dev/null +++ b/GUI-Launch/create-shortcut-windows.bat @@ -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" \ No newline at end of file diff --git a/launch-windows.bat b/GUI-Launch/launch-windows.bat similarity index 53% rename from launch-windows.bat rename to GUI-Launch/launch-windows.bat index 411b57fb04..f09ab78509 100644 --- a/launch-windows.bat +++ b/GUI-Launch/launch-windows.bat @@ -1 +1,3 @@ +cd %~dp0 +cd .. cmd /k "node run" \ No newline at end of file diff --git a/GUI-Launch/superalgos.ico b/GUI-Launch/superalgos.ico new file mode 100644 index 0000000000..ad6b5d50be Binary files /dev/null and b/GUI-Launch/superalgos.ico differ