Skip to content

Commit

Permalink
download all-in-one gamepacks archive during build by default
Browse files Browse the repository at this point in the history
fixes #191
  • Loading branch information
Garux committed May 27, 2024
1 parent 648a836 commit 8f1beb7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ jobs:

- name: Build
run: |
make DOWNLOAD_GAMEPACKS=no MAKEFILE_CONF=msys2-Makefile.conf BUILD=release -j4
wget https://www.dropbox.com/s/b1xpajzfa6yjlzf/netradiant-custom-extra-gamepacks.zip
unzip -o netradiant-custom-extra-gamepacks.zip -d "install"
make MAKEFILE_CONF=msys2-Makefile.conf -j4
mkdir -p install/settings
echo > install/settings/DUMMMY
Expand Down Expand Up @@ -70,9 +68,7 @@ jobs:

- name: Build
run: |
make DOWNLOAD_GAMEPACKS=no CXXFLAGS="-Wno-deprecated-copy" -j4
wget https://www.dropbox.com/s/b1xpajzfa6yjlzf/netradiant-custom-extra-gamepacks.zip
unzip -o netradiant-custom-extra-gamepacks.zip -d "install"
make CXXFLAGS="-Wno-deprecated-copy" -j4
7z a Linux-${{ matrix.arch }}.7z ./install/*
# 7z to preserve file permissions

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ LIBS_ZLIB ?= -lz
CPPFLAGS_JPEG ?=
LIBS_JPEG ?= -ljpeg
DEPEND_ON_MAKEFILE ?= yes
DOWNLOAD_GAMEPACKS ?= yes
# yes = download; all = even download undistributable gamepacks; no = disable; allinone = dl all-in-one compact fixed archive
DOWNLOAD_GAMEPACKS ?= allinone
INSTALL_DLLS ?= yes
# set to no to disable gamepack, set to all to even download undistributable gamepacks

# Support CHECK_DEPENDENCIES with DOWNLOAD_GAMEPACKS semantics
ifneq ($(CHECK_DEPENDENCIES),)
Expand Down
7 changes: 7 additions & 0 deletions download-gamepacks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ pack()
esac
case " $LICENSEFILTER " in
" ")
if [ "$license" == "allinone" ]; then
$ECHO "All-in-one pack skipped: only downloading it alone without other packs."
$ECHO
return
fi
;;
*" $license "*)
;;
Expand Down Expand Up @@ -195,3 +200,5 @@ pack WolfPack proprietary svn svn://svn.icculus.org/gtkradiant-gamep
pack WoPPack proprietary git https://github.com/PadWorld-Entertainment/wop-mapeditor-support.git
pack XonoticPack GPL git https://gitlab.com/xonotic/netradiant-xonoticpack.git
pack ZEQ2LitePack unknown git https://gitlab.com/netradiant/gamepacks/zeq2lite-mapeditor-support.git

pack NRCPack allinone zip1 https://www.dropbox.com/s/b1xpajzfa6yjlzf/netradiant-custom-extra-gamepacks.zip
3 changes: 3 additions & 0 deletions install-gamepacks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ case "$DOWNLOAD_GAMEPACKS" in
yes)
LICENSEFILTER=GPL BATCH=1 $SH download-gamepacks.sh
;;
allinone)
LICENSEFILTER=allinone BATCH=1 $SH download-gamepacks.sh
;;
all)
BATCH=1 $SH download-gamepacks.sh
;;
Expand Down

0 comments on commit 8f1beb7

Please sign in to comment.