Skip to content

Commit 611f636

Browse files
thompcdclaude
andauthored
Rename installer script (#7)
* Fix: Include Flash Firmware.bat and flash_firmware.ps1 in release package The build_release.sh script was not copying the new flash tool files to the release directory. This caused v1.0.5 releases to be missing the Quick Flash Tool files even though they were in the git repository. Now build_release.sh properly copies: - Flash Firmware.bat (Windows launcher) - flash_firmware.ps1 (PowerShell flash script) To the root of the release package, making them immediately available when users extract the release ZIP. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * Fix: Correct Windows batch file syntax for else-if condition The batch file was using 'else if' which is not valid Windows batch syntax. Changed to nested 'else ( if ... )' structure which is the correct syntax. This fixes the 'or was unexpected at this time' error when running Flash Firmware.bat on Windows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * Add debug output to Flash Firmware.bat to troubleshoot launch issues 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * remove spaces from script name * remove else/if logic --------- Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 1d594aa commit 611f636

2 files changed

Lines changed: 34 additions & 22 deletions

File tree

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,44 @@ echo.
1616
REM Change to the script directory
1717
cd /d "%~dp0"
1818

19+
echo Debug: Script directory is "%~dp0"
20+
echo.
21+
1922
REM Check for flash script
2023
if exist "%~dp0flash_firmware.ps1" (
2124
echo Launching flash tool...
2225
echo.
2326
PowerShell -ExecutionPolicy Bypass -File "%~dp0flash_firmware.ps1"
24-
) else (
25-
if exist "%~dp0tools\flash_firmware.ps1" (
26-
echo Launching flash tool...
27-
echo.
28-
PowerShell -ExecutionPolicy Bypass -File "%~dp0tools\flash_firmware.ps1"
29-
) else (
30-
echo.
31-
echo ERROR: flash_firmware.ps1 not found!
32-
echo.
33-
echo Make sure you extracted the entire release ZIP file with
34-
echo all directories and files intact.
35-
echo.
36-
echo The flash script should be at:
37-
echo - flash_firmware.ps1 (in release root), or
38-
echo - tools\flash_firmware.ps1 (in release tools folder)
39-
echo.
40-
pause
41-
exit /b 1
42-
)
27+
goto :end_check
28+
)
29+
30+
if exist "%~dp0tools\flash_firmware.ps1" (
31+
echo Launching flash tool from tools...
32+
echo.
33+
PowerShell -ExecutionPolicy Bypass -File "%~dp0tools\flash_firmware.ps1"
34+
goto :end_check
4335
)
4436

37+
echo.
38+
echo ERROR: flash_firmware.ps1 not found!
39+
echo.
40+
echo Make sure you extracted the entire release ZIP file with
41+
echo all directories and files intact.
42+
echo.
43+
echo The flash script should be at:
44+
echo - flash_firmware.ps1 (in release root), or
45+
echo - tools\flash_firmware.ps1 (in release tools folder)
46+
echo.
47+
echo Debugging info:
48+
echo Script batch file is at: "%~dp0FlashFirmware.bat"
49+
echo Looking for PS1 at: "%~dp0flash_firmware.ps1"
50+
echo Or at: "%~dp0tools\flash_firmware.ps1"
51+
echo.
52+
pause
53+
exit /b 1
54+
55+
:end_check
56+
4557
if %ERRORLEVEL% NEQ 0 (
4658
echo.
4759
echo ============================================

UPLOAD_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Pre-compiled firmware is ready to flash instantly - no compilation needed!
3838
1. **Download the SledLink folder** to your computer from GitHub
3939
2. **Extract the ZIP file** to a convenient location
4040
3. **Connect your controller** via USB cable to your computer
41-
4. **Double-click** `Flash Firmware.bat` in the main folder
41+
4. **Double-click** `FlashFirmware.bat` in the main folder
4242
5. **Select your controller type:**
4343
- Type `1` if flashing a SLED Controller (with encoder)
4444
- Type `2` if flashing a JUDGE Controller (display only)
@@ -118,11 +118,11 @@ If you need to modify the firmware or want the full Arduino development environm
118118

119119
### Flash Method Issues
120120

121-
#### "Flash Firmware.bat won't run" or Windows Defender blocks it
121+
#### "FlashFirmware.bat won't run" or Windows Defender blocks it
122122

123123
- **Windows Defender SmartScreen:** Click **"More info"** then **"Run anyway"**
124124
- **Right-click** the `.bat` file and select **"Run as administrator"**
125-
- **Temporary solution:** Run from Command Prompt: `Flash Firmware.bat`
125+
- **Temporary solution:** Run from Command Prompt: `FlashFirmware.bat`
126126

127127
#### "esptool.exe not found"
128128

0 commit comments

Comments
 (0)