Remove GitHub action, add shell script. Replaced links to be independent from GitHub

This commit is contained in:
Djuri 2024-11-26 21:34:36 +01:00
parent eab668d5eb
commit 5dd6c73e11
16 changed files with 82 additions and 52 deletions

View file

@ -8,8 +8,6 @@
<meta name="viewport" content="width=device-width" />
<meta name="color-scheme" content="dark light" />
<style>
/* antonio-latin-400-normal */
@font-face {
font-family: 'Antonio';
@ -134,9 +132,10 @@
<div class="content">
<h1>BTClock Web Installer</h1>
<!-- V3 start -->
<h2>Version 3</h2>
<h2>Version <span id="version">3</span></h2>
<h3>2.13 inch displays (rev. A)</h3>
<p><small>In most cases you have this version. All versions before block #841273 (2024-04-28) are rev. A.</small></p>
<p><small>In most cases you have this version. All versions before block #841273 (2024-04-28) are rev. A.</small>
</p>
<esp-web-install-button manifest="manifest_btclock_v3_213.json">
<i slot="unsupported">
The flasher is not available because your browser does not support Web
@ -146,7 +145,8 @@
<slot name="activate">Install using multiple parts</slot>
</esp-web-install-button>
<h3>2.13 inch displays (rev. B)</h3>
<p><small>First released on block #841273 (2024-04-28). If on the back it shows rev. B below the block hash, and you have a BOOT button next to the RESET button you have rev. B.</small></p>
<p><small>First released on block #841273 (2024-04-28). If on the back it shows rev. B below the block hash, and you
have a BOOT button next to the RESET button you have rev. B.</small></p>
<esp-web-install-button manifest="manifest_btclock_v3_213_revb.json">
<i slot="unsupported">
@ -158,7 +158,8 @@
<slot name="activate">Install using multiple parts</slot>
</esp-web-install-button>
<h4>2.9 inch displays (custom, experimental)</h4>
<p><small>Offered as a courtesy, if you have the kit or bought it pre-built, you need the 2.13 inch version.</small></p>
<p><small>Offered as a courtesy, if you have the kit or bought it pre-built, you need the 2.13 inch version.</small>
</p>
<esp-web-install-button manifest="manifest_btclock_v3_29.json">
<i slot="unsupported">
The flasher is not available because your browser does not support Web
@ -170,25 +171,27 @@
</esp-web-install-button>
<ul>
<li><a href="https://git.rof.tools/mirrors/btclock_v3/src/branch/main/.github/workflows/tagging.yml">GitHub action compiling the
<li><a href="https://git.btclock.dev/btclock/btclock_v3/src/branch/main/.forgejo/workflows/push.yaml">CI script
compiling the
V3
firmware</a></li>
<li><a href="https://git.rof.tools/mirrors/btclock_v3/releases">Release to be flashed</a><br>
<li><a href="https://git.btclock.dev/btclock/btclock_v3/releases/latest">Release to be flashed</a><br>
<code id="commitHashV3"></code> / <code id="buildDateV3"></code>
</li>
<li><a href="https://git.rof.tools/mirrors/btclock_v3">V3 Source</a></li>
<li><a href="https://git.btclock.dev/btclock/btclock_v3">V3 Source</a></li>
</ul>
<!-- V3 end -->
<hr>
<h3>Verify, don't trust</h2>
<ul>
<li><a href="https://git.rof.tools/mirrors/btclock-web-flasher">Source code of this website</a></li>
<li><a href="https://git.btclock.dev/btclock/web-flasher">Source code of this website</a></li>
</ul>
<hr>
<p>When you are building it yourself, the first time you have to put the S3 mini in to boot mode: Press both side buttons at the same time
<p>When you are building it yourself, the first time you have to put the S3 mini in to boot mode: Press both side
buttons at the same time
(RST/BOOT),
then first release the RST button and then the boot button.</p>
@ -231,17 +234,10 @@
document.querySelector(".not-supported-i").classList.remove("hidden");
}
fetch("firmware/commit.txt")
fetch("firmware_v3/tag.txt")
.then(response => response.text())
.then((response) => {
document.getElementById('commitHash').innerHTML = response;
})
.catch(err => console.log(err))
fetch("firmware/date.txt")
.then(response => response.text())
.then((response) => {
document.getElementById('buildDate').innerHTML = new Date(response.trim()).toLocaleString();
document.getElementById('version').innerHTML = response;
})
.catch(err => console.log(err))