mirror of
https://github.com/wled/WLED.git
synced 2025-07-21 01:36:32 +00:00
Fix for missing firmware build
updated changelog (missing credit)
This commit is contained in:
parent
93d9ce18b2
commit
24c5935661
@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
#### Build 2309120 till build 2402010
|
#### Build 2309120 till build 2402010
|
||||||
- WLED version 0.15.0-a0
|
- 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.
|
- Temporary AP. Use your WLED in public with temporary AP.
|
||||||
- Github CI build system enhancements (#3718 by @WoodyLetsCode)
|
- Github CI build system enhancements (#3718 by @WoodyLetsCode)
|
||||||
- Accessibility: Node list ( #3715 by @WoodyLetsCode)
|
- Accessibility: Node list ( #3715 by @WoodyLetsCode)
|
||||||
|
@ -3,7 +3,8 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import gzip
|
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):
|
def _get_cpp_define_value(env, define):
|
||||||
define_list = [item[-1] for item in env["CPPDEFINES"] if item[0] == define]
|
define_list = [item[-1] for item in env["CPPDEFINES"] if item[0] == define]
|
||||||
@ -13,7 +14,7 @@ def _get_cpp_define_value(env, define):
|
|||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _create_dirs(dirs=["map", "release"]):
|
def _create_dirs(dirs=["map", "release", "firmware"]):
|
||||||
for d in dirs:
|
for d in dirs:
|
||||||
os.makedirs(os.path.join(OUTPUT_DIR, d), exist_ok=True)
|
os.makedirs(os.path.join(OUTPUT_DIR, d), exist_ok=True)
|
||||||
|
|
||||||
@ -26,6 +27,11 @@ def create_release(source):
|
|||||||
print(f"Copying {source} to {release_file}")
|
print(f"Copying {source} to {release_file}")
|
||||||
shutil.copy(source, release_file)
|
shutil.copy(source, release_file)
|
||||||
bin_gzip(release_file, release_gz_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):
|
def bin_rename_copy(source, target, env):
|
||||||
_create_dirs()
|
_create_dirs()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user