febuild/net-misc/adguard-home/files/adguard-home-no-archives.patch
2023-11-04 16:30:12 +01:00

30 lines
876 B
Diff

diff --git a/scripts/make/build-release.sh b/scripts/make/build-release.sh
index 3e556f97..dd334251 100644
--- a/scripts/make/build-release.sh
+++ b/scripts/make/build-release.sh
@@ -202,24 +202,6 @@ build() {
# Prepare the build directory for archiving.
cp ./CHANGELOG.md ./LICENSE.txt ./README.md "$build_dir"
-
- # Make archives. Windows and macOS prefer ZIP archives; the rest,
- # gzipped tarballs.
- case "$build_os"
- in
- ('darwin'|'windows')
- build_archive="./${dist}/${build_ar}.zip"
- # TODO(a.garipov): Find an option similar to the -C option of tar for
- # zip.
- ( cd "${dist}/${1}" && zip -9 -q -r "../../${build_archive}" "./AdGuardHome" )
- ;;
- (*)
- build_archive="./${dist}/${build_ar}.tar.gz"
- tar -C "./${dist}/${1}" -c -f - "./AdGuardHome" | gzip -9 - > "$build_archive"
- ;;
- esac
-
- log "$build_archive"
}
log "starting builds"