1 parent 96a8099 commit b52bca2Copy full SHA for b52bca2
1 file changed
scripts/release.sh
@@ -22,7 +22,10 @@ cp $work_dir/zone_out/*/*.ff $work_dir/release/zone/patch/
22
# zip iwd_files
23
for iwd in "${iwd_files[@]}"; do
24
pushd $work_dir/release/iw4x/$iwd
25
- zip -r $iwd.zip *
+ # Set consistent timestamps for all files
26
+ find . -exec touch -t 200001010000.00 {} +
27
+ # Sort files for zipping, -X for deterministic zip
28
+ find . -name '*' -print0 | LC_ALL=C sort -z | xargs -0 zip -X $iwd.zip
29
mv $iwd.zip $work_dir/release/iw4x/$iwd.iwd
30
popd
31
rm -r $work_dir/release/iw4x/$iwd
@@ -37,7 +40,7 @@ popd
37
40
38
41
# create release.zip from release dir
39
42
pushd $work_dir/release/
-zip -r release.zip *
43
+zip -r -X release.zip *
44
mv release.zip $work_dir
45
46
0 commit comments