From 837ddc8d8a54773490da88f6cee2bc6f50df384d Mon Sep 17 00:00:00 2001 From: Barunes Padhy <148685909+barunespadhy@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:09:29 +0300 Subject: [PATCH] Update rangolio_installer.bat --- rangolio_installer.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rangolio_installer.bat b/rangolio_installer.bat index d865958..9fdff81 100644 --- a/rangolio_installer.bat +++ b/rangolio_installer.bat @@ -53,11 +53,11 @@ python manage.py migrate REM Create a desktop shortcut for managing content echo Creating desktop shortcut... -powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut($env:USERPROFILE + '\Desktop\Rangolio - Manage content.lnk'); $s.TargetPath = 'cmd.exe'; $s.Arguments = '/k cd /d %CD% & .env\Scripts\activate.bat & python manage.py runserver & start https://127.0.0.1:8000/'; $s.IconLocation = '%CD%\rangolio\backend\icons\128x128\icon.ico'; $s.Save()" +powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut($env:USERPROFILE + '\Desktop\Rangolio - Manage content.lnk'); $s.TargetPath = 'powershell.exe'; $s.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command \"cd ''%CD%''; .env\\Scripts\\activate; python manage.py runserver; Start-Process http://127.0.0.1:8000/\"'; $s.IconLocation = '%CD%\icons\256x256.png'; $s.Save()" REM Create a start menu entry for managing content echo Creating start menu entry... -powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut($env:APPDATA + '\Microsoft\Windows\Start Menu\Programs\Rangolio - Manage content.lnk'); $s.TargetPath = 'cmd.exe'; $s.Arguments = '/k cd /d %CD% & .env\Scripts\activate.bat & python manage.py runserver & start https://127.0.0.1:8000/'; $s.IconLocation = '%CD%\rangolio\backend\icons\256x256.png'; $s.Save()" +powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut($env:APPDATA + '\Microsoft\Windows\Start Menu\Programs\Rangolio - Manage content.lnk'); $s.TargetPath = 'powershell.exe'; $s.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command \"cd ''%CD%''; .env\\Scripts\\activate; python manage.py runserver; Start-Process http://127.0.0.1:8000/\"'; $s.IconLocation = '%CD%\icons\256x256.png'; $s.Save()" echo Installation completed successfully.