Delete: Old create-shortcut Scripts

This commit is contained in:
Brenden Harrell committed 2021-05-23 10:06:16 -06:00
1 parent 46cfe71c32
commit 8e87370cfb
2 files changed
-38

No files matched your search

-26
View File
@@ -1,26 +0,0 @@
#!/bin/sh
PWD=`pwd`
DIR=${PWD%/*}
touch Superalgos.desktop
echo "[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Superalgos
Comment=Launch Shortcut for Superalgos
Path=$PWD
Exec=gnome-terminal -e $PWD/launch-linux.sh
Terminal=true
Icon=$DIR/Projects/Superalgos/Icons/superalgos.png
Categories=Application;" > Superalgos.desktop
chmod +x Superalgos.desktop
cp Superalgos.desktop ~/Desktop/Superalgos.desktop
cp Superalgos.desktop ~/.local/share/applications/Superalgos.desktop
rm Superalgos.desktop
# Keep terminal open for debugging
#$SHELL
@@ -1,12 +0,0 @@
set TARGET='%CD%\launch-windows.bat'
set SHORTCUT='%USERPROFILE%\Desktop\Superalgos.lnk'
set STARTMENU='%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\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()"
%PWS% -Command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut(%STARTMENU%); $S.TargetPath = %Target%; $S.IconLocation = %ICON%; $S.Save()"
REM Keep terminal open for debug
REM cmd /k echo "keep open"