Skip to content

Commit

Permalink
added check for SOURCE_DATE_EPOCH (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexi-the-cute authored Dec 14, 2024
1 parent 16bb900 commit 4d44730
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/appimagetool.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,11 @@ int sfs_mksquashfs(char *source, char *destination, int offset) {
args[i++] = exclude_file;
}

args[i++] = "-mkfs-time";
args[i++] = "0";
// don't override time if user sets it
if (!getenv("SOURCE_DATE_EPOCH")) {
args[i++] = "-mkfs-time";
args[i++] = "0";
}

for (guint sqfs_opts_idx = 0; sqfs_opts_idx < sqfs_opts_len; ++sqfs_opts_idx) {
args[i++] = sqfs_opts[sqfs_opts_idx];
Expand Down

0 comments on commit 4d44730

Please sign in to comment.