Browse Source

fix CORS for local devbuild install

pull/421/head
lumapu 2 years ago
parent
commit
aa7a844ff8
  1. 1
      .github/workflows/compile_development.yml
  2. 3
      tools/esp8266/scripts/buildManifest.py
  3. 36
      tools/esp8266/scripts/gh-action-dev-build-flash.html

1
.github/workflows/compile_development.yml

@ -74,7 +74,6 @@ jobs:
tools/esp8266/firmware/*
tools/esp8266/User_Manual.md
tools/esp8266/install.html
tools/esp8266/json/manifest.json
#./${{ steps.rename-binary-files.outputs.name }}.zip

3
tools/esp8266/scripts/buildManifest.py

@ -47,8 +47,7 @@ def buildManifest(path, infile, outfile):
jsonString = json.dumps(data, indent=2)
os.mkdir(path + "json/")
fp = open(path + "json/" + outfile, "w")
fp = open(path + "firmware/" + outfile, "w")
fp.write(jsonString)
fp.close()

36
tools/esp8266/scripts/gh-action-dev-build-flash.html

@ -41,6 +41,42 @@
Die Release Builds werden auf <a href="https://ahoydtu.de" target="_blank">ahoyDtu.de</a> veröffentlicht.
</p>
</div>
<div class="container col-xxl-8 px-4 py-5">
<h3>Vorbereitungen Google Chrome</h3>
<p class="lead">
Bekommt man nach der Auswahl des COM-Ports einen Fehler <i>Failed to download manifest</i> muss man Chrome mit einem Parameter starten:
</p>
<p class="lead">
<div class="row lead mb-2">
<div class="col col-md-2 col-sm-12">
Windows
</div>
<div class="col mx-sm-4">
<code>start chrome --allow-file-access-from-files</code>
</div>
</div>
<div class="row lead mb-2">
<div class="col col-md-2 col-sm-12">
Linux
</div>
<div class="col mx-sm-4">
<code>google-chrome --allow-file-access-from-files</code>
</div>
</div>
<div class="row lead">
<div class="col col-md-2 col-sm-12">
OS X
</div>
<div class="col mx-sm-4">
<code>open -a 'Google Chrome' --args -allow-file-access-from-files</code>
</div>
</div>
</p>
<div class="alert alert-warning" role="alert">
<strong>Wichtig: </strong>es darf keine weitere Instanz von Chrome offen sein, sonst funktionert der Parameter nicht.
</div>
</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);">

Loading…
Cancel
Save