Build scripts: fixed file permissions and archive format

This commit is contained in:
SChernykh
2025-07-01 15:07:29 +02:00
parent 353f22d079
commit 4978cdc9d1
4 changed files with 19 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/sh
set -e
export TZ=UTC0
@@ -40,6 +41,9 @@ mv p2pool $1
mv ../LICENSE $1
mv ../README.md $1
tar cvf $1.tar --sort=name --owner=0 --group=0 --mtime="$CURRENT_DATE $CURRENT_TIME" $1
chmod -R 0644 $1
chmod 0755 $1/p2pool
tar cvf $1.tar --format=pax --sort=name --owner=0 --group=0 --mtime="$CURRENT_DATE $CURRENT_TIME" $1
touch -t $TOUCH_DATE $1.tar
7z a -mx=9 -tgzip -stl $1.tar.gz $1.tar

View File

@@ -1,4 +1,5 @@
#!/bin/sh
set -e
export TZ=UTC0
@@ -40,6 +41,9 @@ mv p2pool $1
mv ../LICENSE $1
mv ../README.md $1
tar cvf $1.tar --sort=name --owner=0 --group=0 --mtime="$CURRENT_DATE $CURRENT_TIME" $1
chmod -R 0644 $1
chmod 0755 $1/p2pool
tar cvf $1.tar --format=pax --sort=name --owner=0 --group=0 --mtime="$CURRENT_DATE $CURRENT_TIME" $1
touch -t $TOUCH_DATE $1.tar
7z a -mx=9 -tgzip -stl $1.tar.gz $1.tar

View File

@@ -1,4 +1,5 @@
#!/bin/sh
set -e
export TZ=UTC0
@@ -40,6 +41,9 @@ mv p2pool $1
mv ../LICENSE $1
mv ../README.md $1
tar cvf $1.tar --sort=name --owner=0 --group=0 --mtime="$CURRENT_DATE $CURRENT_TIME" $1
chmod -R 0644 $1
chmod 0755 $1/p2pool
tar cvf $1.tar --format=pax --sort=name --owner=0 --group=0 --mtime="$CURRENT_DATE $CURRENT_TIME" $1
touch -t $TOUCH_DATE $1.tar
7z a -mx=9 -tgzip -stl $1.tar.gz $1.tar

View File

@@ -1,4 +1,5 @@
#!/bin/sh
set -e
export TZ=UTC0
@@ -42,6 +43,9 @@ mv p2pool.exe $1
mv ../LICENSE $1
mv ../README.md $1
chmod -R 0644 $1
chmod 0755 $1/p2pool.exe
touch -t $TOUCH_DATE $1
touch -t $TOUCH_DATE $1/*
7z a -mx=9 -tzip -stl $1.zip $1