Skip to content

Commit 1b33db1

Browse files
tannewtgithub-actions[bot]
authored andcommitted
Github Action: Updated dist files
1 parent 0f512ac commit 1b33db1

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

dist/base_installer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
'use strict';
66
import {html, render} from 'https://cdn.jsdelivr.net/npm/lit-html/+esm';
77
import {asyncAppend} from 'https://cdn.jsdelivr.net/npm/lit-html/directives/async-append/+esm';
8-
import { ESPLoader, Transport } from "https://unpkg.com/esptool-js@0.5.6/bundle.js";
8+
//import { ESPLoader, Transport } from "https://unpkg.com/esptool-js@0.5.6/bundle.js";
9+
import { ESPLoader, Transport } from "./bundle.js"; // Latest esptool-js as of 2026-03-17
910
export const ESP_ROM_BAUD = 115200;
1011

1112
export class InstallButton extends HTMLButtonElement {

dist/base_installer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.min.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cpinstaller.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { html } from 'https://cdn.jsdelivr.net/npm/lit-html/+esm';
77
import { map } from 'https://cdn.jsdelivr.net/npm/lit-html/directives/map/+esm';
88
import * as toml from "https://cdn.jsdelivr.net/npm/iarna-toml-esm@3.0.5/+esm"
99
import * as zip from "https://cdn.jsdelivr.net/npm/@zip.js/zip.js@2.6.65/+esm";
10-
import { default as CryptoJS } from "https://cdn.jsdelivr.net/npm/crypto-js@4.1.1/+esm";
1110
import { REPL } from 'https://cdn.jsdelivr.net/gh/adafruit/circuitpython-repl-js@3.2.1/repl.js';
1211
import { InstallButton, ESP_ROM_BAUD } from "./base_installer.js";
1312

@@ -1065,7 +1064,7 @@ export class CPInstallButton extends InstallButton {
10651064
let [filename, extracted_filename, fileBlob] = await this.downloadAndExtract(url, fileToExtract, cacheFile);
10661065
const fileArray = [];
10671066

1068-
const readBlobAsBinaryString = (inputFile) => {
1067+
const readBlobAsArrayBuffer = (inputFile) => {
10691068
const reader = new FileReader();
10701069

10711070
return new Promise((resolve, reject) => {
@@ -1077,13 +1076,13 @@ export class CPInstallButton extends InstallButton {
10771076
reader.onload = () => {
10781077
resolve(reader.result);
10791078
};
1080-
reader.readAsBinaryString(inputFile);
1079+
reader.readAsArrayBuffer(inputFile);
10811080
});
10821081
};
10831082

10841083
// Update the Progress dialog
10851084
if (fileBlob) {
1086-
fileArray.push({ data: await readBlobAsBinaryString(fileBlob), address: 0 });
1085+
fileArray.push({ data: new Uint8Array(await readBlobAsArrayBuffer(fileBlob)), address: 0 });
10871086

10881087
let lastPercent = 0;
10891088
this.showDialog(this.dialogs.actionProgress, {
@@ -1109,7 +1108,6 @@ export class CPInstallButton extends InstallButton {
11091108
lastPercent = percentage;
11101109
}
11111110
},
1112-
calculateMD5Hash: (image) => CryptoJS.MD5(CryptoJS.enc.Latin1.parse(image)),
11131111
};
11141112
await this.esploader.writeFlash(flashOptions);
11151113
} catch (err) {

dist/cpinstaller.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)