mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 09:16:11 +02:00
workflow update
This commit is contained in:
parent
42e652c83a
commit
c2dd659e7a
3 changed files with 84 additions and 4 deletions
7
.github/workflows/compile_development.yml
vendored
7
.github/workflows/compile_development.yml
vendored
|
@ -71,9 +71,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.rename-binary-files.outputs.name }}_dev_build
|
name: ${{ steps.rename-binary-files.outputs.name }}_dev_build
|
||||||
path: |
|
path: |
|
||||||
tools/*/firmware/*
|
tools/esp8266/*/firmware/*
|
||||||
tools/*/User_Manual.md
|
tools/esp8266/*/User_Manual.md
|
||||||
tools/*/json/manifest.json
|
tools/esp8266/*/index.html
|
||||||
|
tools/esp8266/*/json/manifest.json
|
||||||
|
|
||||||
#./${{ steps.rename-binary-files.outputs.name }}.zip
|
#./${{ steps.rename-binary-files.outputs.name }}.zip
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,30 @@
|
||||||
import os
|
import os
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
||||||
|
def genOtaBin(path)
|
||||||
|
arr = []
|
||||||
|
arr.append(1)
|
||||||
|
arr.append(0)
|
||||||
|
arr.append(0)
|
||||||
|
arr.append(0)
|
||||||
|
for x in range(24):
|
||||||
|
arr.append(255)
|
||||||
|
arr.append(154)
|
||||||
|
arr.append(152)
|
||||||
|
arr.append(67)
|
||||||
|
arr.append(71)
|
||||||
|
for x in range(4064):
|
||||||
|
arr.append(255)
|
||||||
|
arr.append(0)
|
||||||
|
arr.append(0)
|
||||||
|
arr.append(0)
|
||||||
|
arr.append(0)
|
||||||
|
for x in range(4092):
|
||||||
|
arr.append(255)
|
||||||
|
with open(path + "ota.bin", "wb") as f:
|
||||||
|
f.write(bytearray(arr))
|
||||||
|
|
||||||
|
|
||||||
def readVersion(path, infile):
|
def readVersion(path, infile):
|
||||||
f = open(path + infile, "r")
|
f = open(path + infile, "r")
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
|
@ -40,8 +64,9 @@ def readVersion(path, infile):
|
||||||
dst = path + "firmware/"
|
dst = path + "firmware/"
|
||||||
os.rename(src + "bootloader.bin", dst + "bootloader.bin")
|
os.rename(src + "bootloader.bin", dst + "bootloader.bin")
|
||||||
os.rename(src + "partitions.bin", dst + "partitions.bin")
|
os.rename(src + "partitions.bin", dst + "partitions.bin")
|
||||||
|
genOtaBin(path + "firmware/")
|
||||||
|
os.rename("gh-action-dev-build-flash.html", path + "index.html")
|
||||||
|
|
||||||
#print("::set-output name=name::" + versionnumber[:-1] )
|
|
||||||
print("name=" + versionnumber[:-1] )
|
print("name=" + versionnumber[:-1] )
|
||||||
|
|
||||||
|
|
||||||
|
|
54
tools/esp8266/scripts/gh-action-dev-build-flash.html
Normal file
54
tools/esp8266/scripts/gh-action-dev-build-flash.html
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en" class="h-100">
|
||||||
|
<body class="d-flex flex-column h-100">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||||||
|
|
||||||
|
<title>Flash | AhoyDTU</title>
|
||||||
|
</head>
|
||||||
|
<main>
|
||||||
|
<div class="container col-xxl-8 px-4 py-5">
|
||||||
|
<h3>Development Build (ESP8266 / ESP32)</h3>
|
||||||
|
<p class="lead">
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<p class="lead" >
|
||||||
|
Hierzu die Ahoy-Hardware per USB Kabel an den PC stecken und evtl. warten, bis die Treiber installiert sind. Anschließend auf den ensprechenden <strong>connect</strong> Button klicken.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<esp-web-install-button manifest="firmware/manifest.json">
|
||||||
|
<button class="btn btn-primary" slot="activate">Development Build installieren</button>
|
||||||
|
<span slot="unsupported">
|
||||||
|
<div class="alert alert-warning" role="alert">
|
||||||
|
Your browser does not support installing things on ESP devices. Use Google Chrome or Microsoft Edge.
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span slot="not-allowed">
|
||||||
|
<div class="alert alert-danger" role="alert">
|
||||||
|
You are not allowed to do this using http!
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</esp-web-install-button>
|
||||||
|
<div class="alert alert-secondary mt-3" role="alert">
|
||||||
|
Der Online Installer wird von <a href="https://esphome.github.io/esp-web-tools/" target="_blank">ESP Home Web Tools</a> bereitgestellt
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3>Release Build</h3>
|
||||||
|
<p class="lead" >
|
||||||
|
Die Release Builds werden auf <a href="https://ahoydtu.de" target="_blank">ahoyDtu.de</a> veröffentlicht.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer class="footer mt-auto text-center text-lg-start text-white" style="background-color: #45526e">
|
||||||
|
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.2);">
|
||||||
|
© 2022
|
||||||
|
<a class="text-white" href="https://ahoydtu.de">AhoyDTU.de</a>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
<script type="module" src="https://unpkg.com/esp-web-tools@9.0.3/dist/web/install-button.js?module"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue