From aa7a844ff8fe5404ba58d7ef2974d22e10aa2212 Mon Sep 17 00:00:00 2001 From: lumapu Date: Wed, 9 Nov 2022 12:12:44 +0100 Subject: [PATCH] fix CORS for local devbuild install --- .github/workflows/compile_development.yml | 1 - tools/esp8266/scripts/buildManifest.py | 3 +- .../scripts/gh-action-dev-build-flash.html | 36 +++++++++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile_development.yml b/.github/workflows/compile_development.yml index d4eac0f5..36c93f57 100644 --- a/.github/workflows/compile_development.yml +++ b/.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 diff --git a/tools/esp8266/scripts/buildManifest.py b/tools/esp8266/scripts/buildManifest.py index c12d634b..78c7c92a 100644 --- a/tools/esp8266/scripts/buildManifest.py +++ b/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() diff --git a/tools/esp8266/scripts/gh-action-dev-build-flash.html b/tools/esp8266/scripts/gh-action-dev-build-flash.html index 9040954e..b6566b27 100644 --- a/tools/esp8266/scripts/gh-action-dev-build-flash.html +++ b/tools/esp8266/scripts/gh-action-dev-build-flash.html @@ -41,6 +41,42 @@ Die Release Builds werden auf ahoyDtu.de veröffentlicht.

+ +
+

Vorbereitungen Google Chrome

+

+ Bekommt man nach der Auswahl des COM-Ports einen Fehler Failed to download manifest muss man Chrome mit einem Parameter starten: +

+

+

+
+ Windows +
+
+ start chrome --allow-file-access-from-files +
+
+
+
+ Linux +
+
+ google-chrome --allow-file-access-from-files +
+
+
+
+ OS X +
+
+ open -a 'Google Chrome' --args -allow-file-access-from-files +
+
+

+ +