From 4978cdc9d14c314b7d69701cb36230fe29085da9 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Tue, 1 Jul 2025 15:07:29 +0200 Subject: [PATCH] Build scripts: fixed file permissions and archive format --- release_scripts/linux_aarch64/p2pool_linux_aarch64.sh | 6 +++++- release_scripts/linux_riscv64/p2pool_linux_riscv64.sh | 6 +++++- release_scripts/linux_x64/p2pool_linux_x64.sh | 6 +++++- release_scripts/windows_x64/p2pool_windows_x64.sh | 4 ++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/release_scripts/linux_aarch64/p2pool_linux_aarch64.sh b/release_scripts/linux_aarch64/p2pool_linux_aarch64.sh index fb7cd2b..958b903 100755 --- a/release_scripts/linux_aarch64/p2pool_linux_aarch64.sh +++ b/release_scripts/linux_aarch64/p2pool_linux_aarch64.sh @@ -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 diff --git a/release_scripts/linux_riscv64/p2pool_linux_riscv64.sh b/release_scripts/linux_riscv64/p2pool_linux_riscv64.sh index fef70a8..1a23933 100755 --- a/release_scripts/linux_riscv64/p2pool_linux_riscv64.sh +++ b/release_scripts/linux_riscv64/p2pool_linux_riscv64.sh @@ -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 diff --git a/release_scripts/linux_x64/p2pool_linux_x64.sh b/release_scripts/linux_x64/p2pool_linux_x64.sh index 0c830d0..9dfd8ae 100755 --- a/release_scripts/linux_x64/p2pool_linux_x64.sh +++ b/release_scripts/linux_x64/p2pool_linux_x64.sh @@ -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 diff --git a/release_scripts/windows_x64/p2pool_windows_x64.sh b/release_scripts/windows_x64/p2pool_windows_x64.sh index 63599af..33e0b1b 100755 --- a/release_scripts/windows_x64/p2pool_windows_x64.sh +++ b/release_scripts/windows_x64/p2pool_windows_x64.sh @@ -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