Skip to content

Commit 260172b

Browse files
committed
update tag and fix backend not runnind as admin through shortcut
1 parent ec3d2dd commit 260172b

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

Setup/setup_backend.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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()
156156
Write-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

160166
Write-Host ""

Setup/setup_frontend.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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
222222
Write-Host ""
223223
Write-Host " To launch the application:" -ForegroundColor Green
224224
Write-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
226226
Write-Host " and: uv run pythonw -m Frontend.main" -ForegroundColor White
227227
Write-Host "=====================================================" -ForegroundColor Green

0 commit comments

Comments
 (0)