mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix release packaging and macOS stack overflow crash
- Fix StormLib package name: libstormlib-dev → libstorm-dev (correct Ubuntu package name) across all CI workflows and extract_assets.sh - Build StormLib from source on Windows CI (no MSYS2 package exists), ensuring asset_extract.exe is included in release archives - Update extract_assets.sh/.ps1 to prefer pre-built asset_extract binary next to the script (release archives) before trying build dir - Move ADTTerrain allocations from stack to heap in prepareTile() to fix stack overflow on macOS (worker threads default to 512 KB stack, two ADTTerrain structs ≈ 560 KB exceeded that)
This commit is contained in:
parent
624744da86
commit
8fe53171eb
6 changed files with 76 additions and 37 deletions
|
|
@ -17,9 +17,15 @@ set -euo pipefail
|
|||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
BUILD_DIR="${SCRIPT_DIR}/build"
|
||||
BINARY="${BUILD_DIR}/bin/asset_extract"
|
||||
OUTPUT_DIR="${SCRIPT_DIR}/Data"
|
||||
|
||||
# Prefer pre-built binary next to this script (release archives), then build dir
|
||||
if [ -x "${SCRIPT_DIR}/asset_extract" ]; then
|
||||
BINARY="${SCRIPT_DIR}/asset_extract"
|
||||
else
|
||||
BINARY="${BUILD_DIR}/bin/asset_extract"
|
||||
fi
|
||||
|
||||
# --- Validate arguments ---
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: $0 /path/to/WoW/Data [classic|turtle|tbc|wotlk]"
|
||||
|
|
@ -73,7 +79,7 @@ if [ ! -f "$BINARY" ]; then
|
|||
fi
|
||||
if [ "$STORMLIB_FOUND" = false ]; then
|
||||
echo "Error: StormLib not found."
|
||||
echo " Ubuntu/Debian: sudo apt install libstormlib-dev"
|
||||
echo " Ubuntu/Debian: sudo apt install libstorm-dev"
|
||||
echo " macOS: brew install stormlib"
|
||||
echo " From source: https://github.com/ladislav-zezula/StormLib"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue