Merge pull request #836 from harrellbm/develop

Create Windows Shortcut Script
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-04-26 10:01:32 -04:00
commit a380bd8b05
6 files changed
+13 -1

No files matched your search

+1
View File
@@ -7,5 +7,6 @@ debug.log
Projects/Superalgos/Icons/Thumbs.db
*.bat
!launch-windows.bat
!create-shortcut-windows.bat
*.exe
@@ -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"
+1
View File
@@ -0,0 +1 @@
x-terminal-emulator -e "bash -c 'cd .. && node run; $SHELL'"
@@ -1 +1,3 @@
cd %~dp0
cd ..
cmd /k "node run"
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

-1
View File
@@ -1 +0,0 @@
x-terminal-emulator -e "bash -c 'node run; $SHELL'"