mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-19 04:00:19 +00:00
Updated macOS bundle translation sources to use ${prefix}/locale for both GTK and ZoiteChat catalogs, preventing the bad .../ocale/...-style resolution path caused by prefix/path mismatch during bundling.
Updated both CI macOS staging jobs (arm64 and x86_64) to copy app-installed locale catalogs from $STAGE_PREFIX/share/locale into $STAGE_PREFIX/locale when present, so zoitechat.mo is available to gtk-mac-bundler in the staged tree.
This commit is contained in:
6
.github/workflows/macos-build.yml
vendored
6
.github/workflows/macos-build.yml
vendored
@@ -63,6 +63,9 @@ jobs:
|
|||||||
rsync -a "$BREW_PREFIX/lib/gtk-3.0" "$STAGE_PREFIX/lib/"
|
rsync -a "$BREW_PREFIX/lib/gtk-3.0" "$STAGE_PREFIX/lib/"
|
||||||
rsync -a "$BREW_PREFIX/lib/gdk-pixbuf-2.0" "$STAGE_PREFIX/lib/"
|
rsync -a "$BREW_PREFIX/lib/gdk-pixbuf-2.0" "$STAGE_PREFIX/lib/"
|
||||||
rsync -a "$BREW_PREFIX/share/locale/" "$STAGE_PREFIX/locale/"
|
rsync -a "$BREW_PREFIX/share/locale/" "$STAGE_PREFIX/locale/"
|
||||||
|
if [ -d "$STAGE_PREFIX/share/locale" ]; then
|
||||||
|
rsync -a "$STAGE_PREFIX/share/locale/" "$STAGE_PREFIX/locale/"
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$STAGE_PREFIX/opt"
|
mkdir -p "$STAGE_PREFIX/opt"
|
||||||
rm -rf "$STAGE_PREFIX/opt/enchant"
|
rm -rf "$STAGE_PREFIX/opt/enchant"
|
||||||
@@ -148,6 +151,9 @@ jobs:
|
|||||||
rsync -a "$BREW_PREFIX/lib/gtk-3.0" "$STAGE_PREFIX/lib/"
|
rsync -a "$BREW_PREFIX/lib/gtk-3.0" "$STAGE_PREFIX/lib/"
|
||||||
rsync -a "$BREW_PREFIX/lib/gdk-pixbuf-2.0" "$STAGE_PREFIX/lib/"
|
rsync -a "$BREW_PREFIX/lib/gdk-pixbuf-2.0" "$STAGE_PREFIX/lib/"
|
||||||
rsync -a "$BREW_PREFIX/share/locale/" "$STAGE_PREFIX/locale/"
|
rsync -a "$BREW_PREFIX/share/locale/" "$STAGE_PREFIX/locale/"
|
||||||
|
if [ -d "$STAGE_PREFIX/share/locale" ]; then
|
||||||
|
rsync -a "$STAGE_PREFIX/share/locale/" "$STAGE_PREFIX/locale/"
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$STAGE_PREFIX/opt"
|
mkdir -p "$STAGE_PREFIX/opt"
|
||||||
rm -rf "$STAGE_PREFIX/opt/enchant"
|
rm -rf "$STAGE_PREFIX/opt/enchant"
|
||||||
|
|||||||
@@ -50,10 +50,10 @@
|
|||||||
${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/loaders/*.so
|
${prefix}/lib/gdk-pixbuf-2.0/${pkg:gdk-pixbuf-2.0:gdk_pixbuf_binary_version}/loaders/*.so
|
||||||
</binary>
|
</binary>
|
||||||
<translations name="gtk30">
|
<translations name="gtk30">
|
||||||
${prefix}/share/locale
|
${prefix}/locale
|
||||||
</translations>
|
</translations>
|
||||||
<translations name="zoitechat">
|
<translations name="zoitechat">
|
||||||
${prefix}/share/locale
|
${prefix}/locale
|
||||||
</translations>
|
</translations>
|
||||||
|
|
||||||
<data dest="${bundle}/Contents/Resources">
|
<data dest="${bundle}/Contents/Resources">
|
||||||
|
|||||||
Reference in New Issue
Block a user