Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

Commit 3e691e3

Browse files
BenGlutclaude
andcommitted
fix(ci): extract fw version dynamically, fix Tiger_Scale → Tiger-Scale URLs in version.json
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 302bdb2 commit 3e691e3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎.github/workflows/deploy-installer.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,24 @@ jobs:
6868
6969
- name: Generate version manifest
7070
run: |
71-
# Provide a small JSON the firmware can fetch to compare versions for OTA
71+
# Extract version from firmware source so it always matches the binary
72+
FW_VERSION=$(grep -m1 'TIGERSCALE_FW_VERSION' src/main.cpp | sed 's/.*"\(.*\)".*/\1/')
7273
GIT_SHA=$(git rev-parse --short HEAD)
7374
GIT_DATE=$(git show -s --format=%cI HEAD)
7475
FW_SHA=$(sha256sum web-installer/firmware/firmware.bin | cut -d' ' -f1)
7576
FS_SHA=$(sha256sum web-installer/firmware/littlefs.bin | cut -d' ' -f1)
7677
cat > web-installer/version.json <<EOF
7778
{
78-
"version": "2.0.0",
79+
"version": "$FW_VERSION",
7980
"git_sha": "$GIT_SHA",
8081
"git_date": "$GIT_DATE",
8182
"firmware_sha": "$FW_SHA",
8283
"littlefs_sha": "$FS_SHA",
83-
"firmware_url": "https://tigertag-project.github.io/Tiger_Scale/firmware/firmware.bin",
84-
"littlefs_url": "https://tigertag-project.github.io/Tiger_Scale/firmware/littlefs.bin"
84+
"firmware_url": "https://tigertag-project.github.io/Tiger-Scale/firmware/firmware.bin",
85+
"littlefs_url": "https://tigertag-project.github.io/Tiger-Scale/firmware/littlefs.bin"
8586
}
8687
EOF
88+
echo "── version.json ──"
8789
cat web-installer/version.json
8890
8991
- name: Setup Pages

0 commit comments

Comments
 (0)