forked from btclock/btclock_v3
Compare commits
No commits in common. "ae2e6656dfaef3cf762c86057b3716871b0fb850" and "1a4bc9b711003043516676f485b5649ca31d2b05" have entirely different histories.
ae2e6656df
...
1a4bc9b711
4 changed files with 4 additions and 19 deletions
|
@ -142,10 +142,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
fs_file=$(find .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }} -name "littlefs*.bin")
|
fs_file=$(find .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }} -name "littlefs*.bin")
|
||||||
echo $fs_file
|
shasum -a 256 "$fs_file" | awk '{print $1}' > "${fs_file}.sha256"
|
||||||
fs_name=$(basename "$fs_file")
|
|
||||||
shasum -a 256 "$fs_file" | awk '{print $1}' > "${{ matrix.chip.name }}_${{ matrix.epd_variant }}/${fs_name}.sha256"
|
|
||||||
cat "${{ matrix.chip.name }}_${{ matrix.epd_variant }}/${fs_name}.sha256"
|
|
||||||
- name: Copy all artifacts to output folder
|
- name: Copy all artifacts to output folder
|
||||||
run: cp .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/*.bin .pio/boot_app0.bin ${{ matrix.chip.name }}_${{ matrix.epd_variant }}
|
run: cp .pio/build/${{ matrix.chip.name }}_${{ matrix.epd_variant }}/*.bin .pio/boot_app0.bin ${{ matrix.chip.name }}_${{ matrix.epd_variant }}
|
||||||
|
|
||||||
|
|
|
@ -799,19 +799,6 @@ const char* getFirmwareFilename() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* getWebUiFilename() {
|
|
||||||
if (HW_REV == "REV_B_EPD_2_13") {
|
|
||||||
return "littlefs_8MB.bin";
|
|
||||||
} else if (HW_REV == "REV_A_EPD_2_13") {
|
|
||||||
return "littlefs_4MB.bin";
|
|
||||||
} else if (HW_REV == "REV_A_EPD_2_9") {
|
|
||||||
return "littlefs_4MB.bin";
|
|
||||||
} else {
|
|
||||||
return "littlefs_4MB.bin";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// void loadIcons() {
|
// void loadIcons() {
|
||||||
// size_t ocean_logo_size = 886;
|
// size_t ocean_logo_size = 886;
|
||||||
|
|
||||||
|
|
|
@ -84,5 +84,5 @@ void addScreenMapping(int value, const char* name);
|
||||||
int findScreenIndexByValue(int value);
|
int findScreenIndexByValue(int value);
|
||||||
String replaceAmbiguousChars(String input);
|
String replaceAmbiguousChars(String input);
|
||||||
const char* getFirmwareFilename();
|
const char* getFirmwareFilename();
|
||||||
const char* getWebUiFilename();
|
|
||||||
// void loadIcons();
|
// void loadIcons();
|
|
@ -171,13 +171,14 @@ int downloadUpdateHandler(char updateType)
|
||||||
break;
|
break;
|
||||||
case UPDATE_WEBUI:
|
case UPDATE_WEBUI:
|
||||||
{
|
{
|
||||||
latestRelease = getLatestRelease(getWebUiFilename());
|
latestRelease = getLatestRelease("littlefs.bin");
|
||||||
// updateWebUi(latestRelease.fileUrl, U_SPIFFS);
|
// updateWebUi(latestRelease.fileUrl, U_SPIFFS);
|
||||||
// return 0;
|
// return 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// First, download the expected SHA256
|
// First, download the expected SHA256
|
||||||
String expectedSHA256 = downloadSHA256(latestRelease.checksumUrl);
|
String expectedSHA256 = downloadSHA256(latestRelease.checksumUrl);
|
||||||
if (expectedSHA256.isEmpty())
|
if (expectedSHA256.isEmpty())
|
||||||
|
|
Loading…
Reference in a new issue