Pull request: scripts: make frontend archives as well
Updates #2958. Updates #2959. Squashed commit of the following: commit 0779cc941dae8cfbedb3731dc1c6177c7590a182 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Apr 30 21:22:26 2021 +0300 scripts: make frontend archives as well
This commit is contained in:
parent
1402145cdd
commit
c4223224f5
@ -207,13 +207,14 @@ build() {
|
|||||||
case "$build_os"
|
case "$build_os"
|
||||||
in
|
in
|
||||||
('darwin'|'windows')
|
('darwin'|'windows')
|
||||||
build_archive="${PWD}/${dist}/${build_ar}.zip"
|
build_archive="./${dist}/${build_ar}.zip"
|
||||||
( cd "${dist}/${1}" && zip -9 -q -r "$build_archive" "./AdGuardHome" )
|
# 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"
|
build_archive="./${dist}/${build_ar}.tar.gz"
|
||||||
tar -C "./${dist}/${1}" -c -f - "./AdGuardHome"\
|
tar -C "./${dist}/${1}" -c -f - "./AdGuardHome" | gzip -9 - > "$build_archive"
|
||||||
| gzip -9 - >"$build_archive"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -324,6 +325,12 @@ do
|
|||||||
build "$dir" "$ar" "$os" "$arch" "$arm" "$mips" "$snap"
|
build "$dir" "$ar" "$os" "$arch" "$arm" "$mips" "$snap"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
log "packing frontend"
|
||||||
|
|
||||||
|
build_archive="./${dist}/AdGuardHome_frontend.tar.gz"
|
||||||
|
tar -c -f - ./build ./build2 | gzip -9 - > "$build_archive"
|
||||||
|
log "$build_archive"
|
||||||
|
|
||||||
log "calculating checksums"
|
log "calculating checksums"
|
||||||
|
|
||||||
# Calculate the checksums of the files in a subshell with a different
|
# Calculate the checksums of the files in a subshell with a different
|
||||||
|
Loading…
Reference in New Issue
Block a user