[vlc-devel] [VLC 3.x 1/2] package/macosx: Fix bundling when locales are missing

Marvin Scholz epirat07 at gmail.com
Thu Apr 22 15:43:07 UTC 2021


---
 extras/package/macosx/package.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index 21ab36cf71..7bf7b7dcda 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -43,7 +43,7 @@ endif
 	mkdir -p $@/Contents/MacOS/include/
 	(cd "$(prefix)/include" && $(AMTAR) -c --exclude "plugins" vlc) | $(AMTAR) -x -C $@/Contents/MacOS/include/
 	## Copy translations
-	cp -r "$(prefix)/share/locale" $@/Contents/MacOS/share/
+	[ -d "$(prefix)/share/locale" ] && cp -r "$(prefix)/share/locale" $@/Contents/MacOS/share/ || true
 	printf "APPLVLC#" >| $@/Contents/PkgInfo
 	## Copy libs
 	mkdir -p $@/Contents/MacOS/lib
-- 
2.30.1



More information about the vlc-devel mailing list