Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
build(linux): copy the overlay so the staged folder can move
Andreas Berger7d3a5ab6e7f1
diff --git a/GeneralsMD/Code/Tools/build-posix.sh b/GeneralsMD/Code/Tools/build-posix.shindex 0acee0802..5b48351aa 100755--- a/GeneralsMD/Code/Tools/build-posix.sh+++ b/GeneralsMD/Code/Tools/build-posix.sh@@ -182,7 +182,8 @@ elserm -rf "$package"mkdir -p "$package/bin" "$package/share/zero-hour-reforged"cp "$BUILD/generals" "$package/bin/generals"- ln -s ../../../overlay "$package/share/zero-hour-reforged/overlay"+ # a copy, not a link into the build tree, so the folder runs from wherever it is moved+ cp -R "$BUILD/overlay" "$package/share/zero-hour-reforged/overlay"echo "[build] done: run $package/bin/generals"fiecho "[build] It finds your Zero Hour in the usual places, or asks for its folder on the first start: the one"diff --git a/PORTING.md b/PORTING.mdindex 3f8a82edc..088bb1e8e 100644--- a/PORTING.md+++ b/PORTING.md@@ -69,8 +69,10 @@ sudo apt-get install cmake ninja-build g++ git curl unzip xz-utils make pkg-confSKIPPED without it.`build-linux/ZeroHourReforged/` has the Linux package's layout: `bin/generals` and the staged overlay at-`share/zero-hour-reforged/overlay`, a link back into the build tree, so it runs where it is and is not a folder-to hand to anyone. `GeneralsMD/Code/Tools/linux-check.sh` builds and tests the tree in containers ({gcc,+`share/zero-hour-reforged/overlay`, a copy, so the whole folder can be moved; `bin/generals` moved alone is an+unpacked build, which takes its own folder for the install. It links against this machine's libraries, so it+is not a folder to hand to anyone: `linux-portable.sh` below makes that one.+`GeneralsMD/Code/Tools/linux-check.sh` builds and tests the tree in containers ({gcc,clang} x {arm64, amd64}) from a Mac or a Linux host with Docker.**The Steam Deck and other distributions.** `GeneralsMD/Code/Tools/linux-portable.sh --build <dir> --out