Skip to content

Commit

Permalink
CI - Fix rename zip support for --no-archive
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas committed Dec 18, 2024
1 parent 27a0437 commit a2c6dd9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .hemtt/hooks/post_release/01_rename_zip.rhai
Original file line number Diff line number Diff line change
@@ -3,7 +3,9 @@ let releases = HEMTT_RFS.join("releases");
let src = releases.join(HEMTT.project().prefix() + "-" + HEMTT.project().version().to_string() + ".zip");
let dst = releases.join(HEMTT.project().name().to_lower() + "_" + HEMTT.project().version().to_string() + ".zip");

print("Moving zip to " + dst);
if !src.move(dst) {
warn("Failed to move " + src + " to " + dst + " (maybe --no-archive?)");
if src.is_file() { // support --no-archive
print("Moving zip to " + dst);
if !src.move(dst) {
warn("Failed to move " + src + " to " + dst);
}
}

0 comments on commit a2c6dd9

Please sign in to comment.