From dc54995190b0e9c46b89851cfcd3d72ae3761bf2 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 29 May 2013 06:18:09 +0200 Subject: [PATCH] build a WebP release (experimental) --- misc/tools/all/release.subr | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/misc/tools/all/release.subr b/misc/tools/all/release.subr index b13213f2..5b2eaa18 100644 --- a/misc/tools/all/release.subr +++ b/misc/tools/all/release.subr @@ -369,6 +369,19 @@ case "$cmd" in verbose export del_src=true find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh ;; + release-buildpk3-transform-webp) + release_common + dir=$1 + verbose cd "$dir" + # texture: convert to jpeg and dds + verbose export do_jpeg=false + verbose export do_webp=true + verbose export do_dds=false + verbose export do_ogg=false + verbose export ogg_ogg=false + verbose export del_src=true + find . -type f -print0 | verbose xargs -0 "$d0"/misc/tools/cached-converter.sh + ;; release-buildpk3-transform-lowdds) release_common dir=$1 @@ -517,8 +530,8 @@ case "$cmd" in release_common verbose "$SELF" release-buildpk3s data/font-nimbussansl.pk3dir raw '' verbose "$SELF" release-buildpk3s data/font-xolonium.pk3dir raw '' - verbose "$SELF" release-buildpk3s data/xonotic-data.pk3dir low '-low' normaldds '' - verbose "$SELF" release-buildpk3s data/xonotic-maps.pk3dir low '-low' normaldds '' mapping '-mapping' + verbose "$SELF" release-buildpk3s data/xonotic-data.pk3dir low '-low' normaldds '' webp '-high' + verbose "$SELF" release-buildpk3s data/xonotic-maps.pk3dir low '-low' normaldds '' mapping '-mapping' webp '-high' verbose "$SELF" release-buildpk3s data/xonotic-music.pk3dir raw '' low '-low' verbose "$SELF" release-buildpk3s data/xonotic-nexcompat.pk3dir normaldds '' ;; @@ -589,6 +602,11 @@ case "$cmd" in Xonotic/data/xonotic-$pk3stamp-data-low.pk3 \ Xonotic/data/xonotic-$pk3stamp-maps-low.pk3 \ Xonotic/data/xonotic-$pk3stamp-music-low.pk3 + verbose mv Xonotic-$stamp-common.zip Xonotic-$stamp-high.zip + verbose mkzip0 Xonotic-$stamp-high.zip \ + Xonotic/data/xonotic-$pk3stamp-data-high.pk3 \ + Xonotic/data/xonotic-$pk3stamp-maps-high.pk3 \ + Xonotic/data/xonotic-$pk3stamp-music.pk3 verbose mkzip Xonotic-$stamp-mappingsupport.zip \ Xonotic/mapping verbose mkzip0 Xonotic-$stamp-mappingsupport.zip \ -- 2.39.2