Use WLED_RELEASE_NAME to generate bin names and show the name in update

Package.json: set version to mmod numbering
platformio.ini: refactor mmod entries using extend and WLED_RELEASE_NAME
update.htm: change to installed bin
wled.h: add releaseString
xml.cpp: set bin name
This commit is contained in:
Ewoud
2022-10-28 12:25:10 +02:00
parent 306fb01991
commit 305c9c5566
9 changed files with 1809 additions and 3902 deletions

View File

@@ -16,7 +16,7 @@
<body onload="GetV()">
<h2>MoonMod WLED Software Update</h2>
<form method='POST' action='/update' id='uf' enctype='multipart/form-data' onsubmit="U()">
Installed version: <span class="sip">##VERSION##</span><br>
Installed bin: <span class="sip">##VERSION##</span><br> <!--WLEDSR: show bin name-->
Download the latest binary: <a href="https://github.com/MoonModules/WLED/releases" target="_blank">
<img src="https://img.shields.io/github/release/MoonModules/WLED.svg?style=flat-square"></a><br>
<input type='file' name='update' required><br> <!--should have accept='.bin', but it prevents file upload from android app-->