X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=all;h=4231e0ddcedb0f19aec44dcca64359537cf5dc04;hp=71e997153f17d3a2532edbcee96c20dbd7a6eaab;hb=5cc9692968321515bd7f37ce76411e71937b5ad5;hpb=39b629c021118676322eb7ee39e7a1e611c1b313 diff --git a/all b/all index 71e99715..4231e0dd 100755 --- a/all +++ b/all @@ -277,9 +277,10 @@ mkzip() archive=$1 shift ziplist=`mktemp` - find "$@" -xtype f \( -type f -not -executable \) -print > "$ziplist"; 7za a -tzip -mx=9 -i@"$ziplist" "$archive" || true + find "$@" -xtype f \( -executable -or -type l \) -print > "$ziplist" + 7za a -tzip -mx=9 -x@"$ziplist" "$archive" "$@" || true + zip -9y -@<"$ziplist" "$archive" || true rm -f "$ziplist" - find "$@" -xtype f \( -not \( -type f -not -executable \) \) -print | zip -9y -@ "$archive" || true } mkzip0() @@ -1062,8 +1063,7 @@ case "$cmd" in verbose "$SELF" release-compile win64 \ 'STRIP=: DP_MAKE_TARGET=mingw CC="amd64-mingw32msvc-gcc -g -Wl,--dynamicbase -Wl,--nxcompat -I.deps/include -L.deps/lib" WINDRES="amd64-mingw32msvc-windres" SDL_CONFIG=".deps/bin/sdl-config" LIB_JPEG= CFLAGS_LIBJPEG= WIN64RELEASE=1 D3D=0' \ win 'fteqcc.exe:Xonotic/fteqcc/fteqcc-x64.exe' \ - 'sv-release cl-release' 'darkplaces.exe:Xonotic/xonotic-x64.exe darkplaces-dedicated.exe:Xonotic/xonotic-dedicated-x64.exe' - # release 'darkplaces.exe:Xonotic/xonotic-x64.exe darkplaces-sdl.exe:Xonotic/xonotic-sdl-x64.exe darkplaces-dedicated.exe:Xonotic/xonotic-dedicated-x64.exe' + release 'darkplaces.exe:Xonotic/xonotic-x64.exe darkplaces-sdl.exe:Xonotic/xonotic-x64-sdl.exe darkplaces-dedicated.exe:Xonotic/xonotic-x64-dedicated.exe' ;; release-engine-osx-sv-sdl) # gcc on OSX is buggy, needs -fno-reorder-blocks for a release build to succeed @@ -1226,7 +1226,7 @@ case "$cmd" in fi verbose export git_src_repo="$d0/$src" # skip hash-object verbose "$SELF" release-buildpk3-transform-$transform "Xonotic/temp" - verbose mkzip "../../$dst" . + verbose mkzip "../../$dst" * verbose cd ../.. verbose rm -rf Xonotic/temp ;; @@ -1268,6 +1268,8 @@ case "$cmd" in ;; release-zip) stamp=`cat Xonotic/stamp.txt` + # exe and dll files do not need +x, so this makes them eligible for 7zip compression too + chmod a-x Xonotic/*.exe Xonotic/*.dll || true # need to use infozip for these (+x bits) verbose mkzip Xonotic-$stamp-engine.zip \ Xonotic/*.dll \