File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# =============================================================================
1414
1515$INSTALL_DIR = " C:\Program Files\Speech-to-Cobot-Backend"
16- $RELEASE_TAG = " v1.1.0 "
16+ $RELEASE_TAG = " v1.1.2 "
1717$ZIP_URL = " https://github.com/Meisdy/Speech-to-Code-Generation-for-Collaborative-Robots/releases/download/$RELEASE_TAG /stcgcr-backend.zip"
1818$ZIP_PATH = " C:\Windows\Temp\stcgcr-backend.zip"
1919$EXTRACT_PATH = " C:\Windows\Temp\stcgcr-backend-extract"
@@ -155,6 +155,12 @@ $shortcut.Description = "Start Speech-to-Cobot Backend Server"
155155$shortcut.Save ()
156156Write-OK " Shortcut created at $shortcutPath "
157157
158+ # Set shortcut to always run as Administrator (sets flag byte in .lnk file)
159+ $bytes = [System.IO.File ]::ReadAllBytes($shortcutPath )
160+ $bytes [0x15 ] = $bytes [0x15 ] -bor 0x20
161+ [System.IO.File ]::WriteAllBytes($shortcutPath , $bytes )
162+ Write-OK " Shortcut set to run as Administrator"
163+
158164# --- Done ---------------------------------------------------------------------
159165
160166Write-Host " "
Original file line number Diff line number Diff line change 1515# =============================================================================
1616
1717$INSTALL_DIR = " C:\Program Files\Speech-to-Cobot"
18- $RELEASE_TAG = " v1.1.0 "
18+ $RELEASE_TAG = " v1.1.2 "
1919$ZIP_URL = " https://github.com/Meisdy/Speech-to-Code-Generation-for-Collaborative-Robots/releases/download/$RELEASE_TAG /stcgcr-frontend.zip"
2020$ZIP_PATH = " C:\Windows\Temp\stcgcr-frontend.zip"
2121$EXTRACT_PATH = " C:\Windows\Temp\stcgcr-frontend-extract"
@@ -222,6 +222,6 @@ Write-Host " $INSTALL_DIR" -ForegroundCo
222222Write-Host " "
223223Write-Host " To launch the application:" - ForegroundColor Green
224224Write-Host " Double-click Speech-to-Cobot on the Desktop" - ForegroundColor White
225- Write-Host " or: cd '$INSTALL_DIR '" - ForegroundColor White
225+ Write-Host " or: cd '$INSTALL_DIR ' as admin " - ForegroundColor White
226226Write-Host " and: uv run pythonw -m Frontend.main" - ForegroundColor White
227227Write-Host " =====================================================" - ForegroundColor Green
You can’t perform that action at this time.
0 commit comments