Skip to content

Commit

Permalink
Fix for missing firmware build
Browse files Browse the repository at this point in the history
updated changelog (missing credit)
  • Loading branch information
blazoncek committed Apr 3, 2024
1 parent 93d9ce1 commit 24c5935
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

#### Build 2309120 till build 2402010
- WLED version 0.15.0-a0
- Multi-WiFi support. Add up to 3 (or more via cusom compile) WiFis to connect to
- Multi-WiFi support. Add up to 3 (or more via cusom compile) WiFis to connect to (with help from @JPZV)
- Temporary AP. Use your WLED in public with temporary AP.
- Github CI build system enhancements (#3718 by @WoodyLetsCode)
- Accessibility: Node list ( #3715 by @WoodyLetsCode)
Expand Down
10 changes: 8 additions & 2 deletions pio-scripts/output_bins.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import shutil
import gzip

OUTPUT_DIR = os.path.join("build_output")
OUTPUT_DIR = "build_output{}".format(os.path.sep)
#OUTPUT_DIR = os.path.join("build_output")

def _get_cpp_define_value(env, define):
define_list = [item[-1] for item in env["CPPDEFINES"] if item[0] == define]
Expand All @@ -13,7 +14,7 @@ def _get_cpp_define_value(env, define):

return None

def _create_dirs(dirs=["map", "release"]):
def _create_dirs(dirs=["map", "release", "firmware"]):
for d in dirs:
os.makedirs(os.path.join(OUTPUT_DIR, d), exist_ok=True)

Expand All @@ -26,6 +27,11 @@ def create_release(source):
print(f"Copying {source} to {release_file}")
shutil.copy(source, release_file)
bin_gzip(release_file, release_gz_file)
else:
variant = env["PIOENV"]
bin_file = "{}firmware{}{}.bin".format(OUTPUT_DIR, os.path.sep, variant)
print(f"Copying {source} to {bin_file}")
shutil.copy(source, bin_file)

def bin_rename_copy(source, target, env):
_create_dirs()
Expand Down

0 comments on commit 24c5935

Please sign in to comment.