mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-15 18:20:20 +00:00
Updated macOS CI staging (arm64 + x86_64) to copy locales into $STAGE_PREFIX/locale/ (instead of $STAGE_PREFIX/share/locale) so gtk-mac-bundler can resolve gtk30.mo at the path it expects.
Updated both macOS packaging steps to pass BUNDLE_PREFIX with a trailing slash (.../stage/<arch>/).
Replaced cp -a with rsync -aL when staging enchant so symlinks are dereferenced into the staged tree (avoids Homebrew opt symlink pitfalls).
Adjusted osx/makebundle.sh to preserve a caller-provided trailing slash when writing the XML default prefix (instead of stripping it), matching the CI fix for malformed x86_64locale path concatenation.
This commit is contained in:
@@ -58,11 +58,10 @@ if [ -z "$BUNDLE_PREFIX" ]; then
|
||||
BUNDLE_PREFIX="/usr/local"
|
||||
fi
|
||||
|
||||
# gtk-mac-bundler translation rebasing can produce off-by-one path slicing
|
||||
# with a trailing slash in <prefix>, yielding broken paths like
|
||||
# ".../x86_64/ocale/...". Keep the XML prefix slashless and let bundle entries
|
||||
# contribute their own separators.
|
||||
BUNDLE_PREFIX_XML="${BUNDLE_PREFIX%/}"
|
||||
# Keep a caller-provided trailing slash so gtk-mac-bundler path concatenation
|
||||
# does not produce malformed locale paths like ".../x86_64locale/...".
|
||||
# CI explicitly sets BUNDLE_PREFIX with a trailing slash.
|
||||
BUNDLE_PREFIX_XML="$BUNDLE_PREFIX"
|
||||
|
||||
ENCHANT_PREFIX_DEFAULT="${BUNDLE_PREFIX}/opt/enchant"
|
||||
ENCHANT_PREFIX_PATH="${ENCHANT_PREFIX:-$ENCHANT_PREFIX_DEFAULT}"
|
||||
|
||||
Reference in New Issue
Block a user