0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-09-28 01:29:03 +03:00

chore: make build_{deb,rpm,tarball}.sh reproducible

This commit is contained in:
2025-06-28 14:23:28 +03:00
parent 0feb831865
commit a92a97f8a3
4 changed files with 20 additions and 4 deletions

View File

@@ -2,6 +2,8 @@
set -e
export SOURCE_DATE_EPOCH=1700000000
usage() {
echo "Usage: $(basename "$0") [-h] [-a <x64|armv7l|arm64|all> default=x64]"
echo
@@ -35,7 +37,9 @@ build_deb(){
# extract tarball to pkgdir
tar -xzf "${TEMPDIR}/yandex-music_${version}_${arch}.tar.gz" -C "${pkgdir}"
dpkg-deb --build "${pkgdir}" "deb/yandex-music_${version}_${pkgarch}.deb"
find "${pkgdir}" -exec touch -t "$(date -d "@${SOURCE_DATE_EPOCH}" +%Y%m%d%H%M.%S)" {} +
dpkg-deb --root-owner-group --build "${pkgdir}" "deb/yandex-music_${version}_${pkgarch}.deb"
}
x64=0