|
15 | 15 | # ============================================================================= |
16 | 16 |
|
17 | 17 | $INSTALL_DIR = "C:\Program Files\Speech-to-Cobot" |
18 | | -$ZIP_URL = "https://github.com/Meisdy/Speech-to-Code-Generation-for-Collaborative-Robots/archive/refs/heads/dev.zip" |
19 | | -$ZIP_PATH = "$env:TEMP\speech-to-cobot.zip" |
20 | | -$EXTRACT_PATH = "$env:TEMP\speech-to-cobot-extract" |
| 18 | +$RELEASE_TAG = "v0.1.0" |
| 19 | +$ZIP_URL = "https://github.com/Meisdy/Speech-to-Code-Generation-for-Collaborative-Robots/releases/download/$RELEASE_TAG/stcgcr-frontend.zip" |
| 20 | +$ZIP_PATH = "$env:TEMP\stcgcr-frontend.zip" |
| 21 | +$EXTRACT_PATH = "$env:TEMP\stcgcr-frontend-extract" |
21 | 22 | $LM_STUDIO_URL = "http://localhost:1234/v1/models" |
22 | 23 | $WHISPER_CACHE = "$env:USERPROFILE\.cache\whisper" |
23 | 24 |
|
@@ -146,6 +147,21 @@ if ($LASTEXITCODE -ne 0) { |
146 | 147 | $elapsed = [math]::Round(((Get-Date) - $stepStart).TotalSeconds, 1) |
147 | 148 | Write-OK "Python 3.12 and all dependencies installed ($elapsed s)" |
148 | 149 |
|
| 150 | +# --- Desktop shortcut --------------------------------------------------------- |
| 151 | +# Creates a shortcut on the current user's Desktop pointing to launch_frontend.bat |
| 152 | +# in the install directory. The bat file handles cd and uv run in one click. |
| 153 | + |
| 154 | +Write-Step "Creating Desktop shortcut" |
| 155 | +$batPath = "$INSTALL_DIR\launch_frontend.bat" |
| 156 | +$shortcutPath = "$env:USERPROFILE\Desktop\Speech-to-Cobot.lnk" |
| 157 | +$shell = New-Object -ComObject WScript.Shell |
| 158 | +$shortcut = $shell.CreateShortcut($shortcutPath) |
| 159 | +$shortcut.TargetPath = $batPath |
| 160 | +$shortcut.WorkingDirectory = $INSTALL_DIR |
| 161 | +$shortcut.Description = "Launch Speech-to-Cobot Frontend" |
| 162 | +$shortcut.Save() |
| 163 | +Write-OK "Shortcut created at $shortcutPath" |
| 164 | + |
149 | 165 | # --- Whisper model ------------------------------------------------------------ |
150 | 166 | # Pre-downloads the model so the first launch does not stall. |
151 | 167 | # Saved to %USERPROFILE%\.cache\whisper — outside the project directory. |
|
0 commit comments