mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-03 06:54:16 +01:00
* base envs
* CI: speed up release process (since we still want some .bin files)
* fixup! CI: speed up release process (since we still want some .bin files)
* release dry run
* fixup! release dry run
* adjust
* fix .bin name
* it works
* minor cleanup for current git
* use pio suggestion about ldscript, reduce build_flags impact
* fix linker
* parse ${vars} instead of ignoring them
* add filtering and override file (sneak peak into tasmota's pio config)
* don't generate secure client (for now)
* formatting
* codacy
23 lines
641 B
Python
23 lines
641 B
Python
import os
|
|
import shutil
|
|
|
|
def copy_release(target, source, env):
|
|
# target filename and subdir for release files
|
|
name = env["ESPURNA_NAME"]
|
|
version = env["ESPURNA_VERSION"]
|
|
|
|
if not name or not version:
|
|
raise ValueError("Cannot set up release without release variables present")
|
|
|
|
destdir = os.path.join(env.subst("$PROJECT_DIR"), "..", "firmware", version)
|
|
if not os.path.exists(destdir):
|
|
os.makedirs(destdir)
|
|
|
|
dest = os.path.join(
|
|
destdir, "espurna-{version}-{name}.bin".format(version=version, name=name)
|
|
)
|
|
src = env.subst("$BUILD_DIR/${PROGNAME}.bin")
|
|
|
|
shutil.copy(src, dest)
|
|
|