Skip to content

Commit

Permalink
Log the name of the archive in nob dist for MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Feb 8, 2024
1 parent ad3f7c3 commit 12b9926
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nob_win64_mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,12 @@ bool build_dist(void)
// TODO: pack ffmpeg.exe with windows build
//if (!nob_copy_file("ffmpeg.exe", "./musializer-win64-mingw/ffmpeg.exe")) return false;
Nob_Cmd cmd = {0};
nob_cmd_append(&cmd, "zip", "-r", "./musializer-win64-mingw.zip", "./musializer-win64-mingw/");
const char *dist_path = "./musializer-win64-mingw.zip";
nob_cmd_append(&cmd, "zip", "-r", dist_path, "./musializer-win64-mingw/");
bool ok = nob_cmd_run_sync(cmd);
nob_cmd_free(cmd);
if (!ok) return false;
nob_log(NOB_INFO, "Created %s", dist_path);
return true;
#endif // MUSIALIZER_HOTRELOAD
}

0 comments on commit 12b9926

Please sign in to comment.