Skip to content

Commit

Permalink
🔨 Rename (not copy) with board_build.rename
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 9, 2022
1 parent 49f8171 commit 035f9b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions buildroot/share/PlatformIO/scripts/offset_and_rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def encrypt(source, target, env):

def rename_target(source, target, env):
firmware = os.path.join(target[0].dir.path, board.get("build.rename"))
import shutil
shutil.copy(target[0].path, firmware)
os.rename(target[0].path, firmware)

marlin.add_post_action(rename_target)

0 comments on commit 035f9b8

Please sign in to comment.