Skip to content

Commit

Permalink
Rename bin files to the new standard (OpenEPaperLink#139)
Browse files Browse the repository at this point in the history
* Update release.yml
* Update genfilelist.py
* Rename files
* Create .gitignore
  • Loading branch information
jonasniesner authored Sep 27, 2023
1 parent 29b8c9b commit 7fe4a1e
Show file tree
Hide file tree
Showing 26 changed files with 24 additions and 24 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ jobs:
- name: Install intelhex
run: pip install --upgrade intelhex

- name: Build NRF firmware
run: |
cd ARM_Tag_FW/Newton_M3_nRF52811
pio run --environment Newton_M3_22_BWR
pio run --environment Newton_M3_29_BWR
pio run --environment Newton_M3_75_BWR
cp Newton_M3_22_BWR-ota.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_22_BWR-ota.bin
cp Newton_M3_22_BWR-full-flash.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_22_BWR-full-flash.bin
cp Newton_M3_29_BWR-ota.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_29_BWR-ota.bin
cp Newton_M3_29_BWR-full-flash.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_29_BWR-full-flash.bin
cp Newton_M3_75_BWR-ota.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_75_BWR-ota.bin
cp Newton_M3_75_BWR-full-flash.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_75_BWR-full-flash.bin
# - name: Build NRF firmware
# run: |
# cd ARM_Tag_FW/Newton_M3_nRF52811
# pio run --environment Newton_M3_22_BWR
# pio run --environment Newton_M3_29_BWR
# pio run --environment Newton_M3_75_BWR
# cp Newton_M3_22_BWR-ota.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_22_BWR-ota.bin
# cp Newton_M3_22_BWR-full-flash.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_22_BWR-full-flash.bin
# cp Newton_M3_29_BWR-ota.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_29_BWR-ota.bin
# cp Newton_M3_29_BWR-full-flash.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_29_BWR-full-flash.bin
# cp Newton_M3_75_BWR-ota.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_75_BWR-ota.bin
# cp Newton_M3_75_BWR-full-flash.bin /home/runner/work/OpenEPaperLink/OpenEPaperLink/binaries/Newton_M3_75_BWR-full-flash.bin

- name: Install esptool
run: pip install esptool
Expand Down Expand Up @@ -199,14 +199,14 @@ jobs:
file_glob: true
overwrite: true

- name: Add tag bins to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: binaries/*
tag: ${{ github.ref }}
file_glob: true
overwrite: true
# - name: Add tag bins to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: binaries/*
# tag: ${{ github.ref }}
# file_glob: true
# overwrite: true

# this is down here intentionally to be able to modify the binary folder before adding it to the Tag_Flasher later (ota binaries can be removed)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added binaries/Tag/SOLUM_M2_BWR_75-tag-26-0004-full.bin
Binary file not shown.
Binary file added binaries/Tag/SOLUM_M2_BWR_75-tag-26-0004-ota.bin
Binary file not shown.
Binary file added binaries/Tag/SOLUM_M3_22_BWR-tag-31-0016-full.bin
Binary file not shown.
Binary file added binaries/Tag/SOLUM_M3_22_BWR-tag-31-0016-ota.bin
Binary file not shown.
Binary file added binaries/Tag/SOLUM_M3_29_BWR-tag-33-0016-full.bin
Binary file not shown.
Binary file added binaries/Tag/SOLUM_M3_29_BWR-tag-33-0016-ota.bin
Binary file not shown.
Binary file added binaries/Tag/SOLUM_M3_43_BWR-tag-34-0016-full.bin
Binary file not shown.
Binary file added binaries/Tag/SOLUM_M3_43_BWR-tag-34-0016-ota.bin
Binary file not shown.
Binary file not shown.
Binary file added binaries/Tag/SOLUM_M3_60_BWR-tag-35-0016-ota.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed binaries/Tag_FW_Pack.bin
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions genfilelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def calculate_md5(file_path):
tag = sys.argv[1]

binaries = generate_file_hashes2(rp + "/espbinaries",tag)
tagota = generate_file_hashes2(rp + "/binaries",tag)
#tagota = generate_file_hashes2(rp + "/binaries",tag)
files1 = generate_file_hashes(rp + "/ESP32_AP-Flasher/data/www","/www/",tag)
files1.extend(generate_file_hashes(rp + "/ESP32_AP-Flasher/data","/",tag))
files1.extend(generate_file_hashes(rp + "/ESP32_AP-Flasher/data/fonts","/fonts/",tag))
Expand All @@ -65,7 +65,7 @@ def calculate_md5(file_path):
"builddate": dt_string,
"binaries": binaries,
"files": files1,
"tagota": tagota,
# "tagota": tagota,
}

with open("jsonfiles/binaries.json", "w") as json_file:
Expand All @@ -74,8 +74,8 @@ def calculate_md5(file_path):
with open("jsonfiles/files.json", "w") as json_file:
json.dump(jsonarray, json_file, indent=4)

with open("jsonfiles/tagota.json", "w") as json_file:
json.dump(tagota, json_file, indent=4)
#with open("jsonfiles/tagota.json", "w") as json_file:
# json.dump(tagota, json_file, indent=4)

with open("jsonfiles/filesystem.json", "w") as json_file:
json.dump(files1, json_file, indent=4)

0 comments on commit 7fe4a1e

Please sign in to comment.