[vlc-devel] [PATCH 1/2] macOS package.mak: Add release archive target
david.fuhrmann at gmail.com
david.fuhrmann at gmail.com
Wed Dec 27 19:48:22 CET 2017
From: David Fuhrmann <dfuhrmann at videolan.org>
This adds a rule to build a release archive, containing all tools
needed for codesigning and building the final dmg.
---
extras/package/macosx/package.mak | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index efdc0dc..31cab5d 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -92,6 +92,15 @@ package-macosx-zip: VLC.app
zip -r -y -9 $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
rm -rf "$(top_builddir)/vlc-$(VERSION)"
+package-macosx-release: VLC.app
+ rm -f "$(top_builddir)/vlc-$(VERSION)-release.zip"
+ mkdir -p $(top_builddir)/vlc-$(VERSION)
+ cp -R $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)/
+ cp $(srcdir)/extras/package/macosx/dmg/* $(top_builddir)/vlc-$(VERSION)/
+ cp "$(srcdir)/extras/package/macosx/codesign.sh" $(top_builddir)/vlc-$(VERSION)/
+ zip -r -y -9 $(top_builddir)/vlc-$(VERSION)-release.zip $(top_builddir)/vlc-$(VERSION)
+ rm -rf "$(top_builddir)/vlc-$(VERSION)"
+
package-translations:
mkdir -p "$(srcdir)/vlc-translations-$(VERSION)"
for i in `cat "$(top_srcdir)/po/LINGUAS"`; do \
@@ -111,7 +120,7 @@ package-translations:
$(AMTAR) chof - $(srcdir)/vlc-translations-$(VERSION) \
| GZIP=$(GZIP_ENV) gzip -c >$(srcdir)/vlc-translations-$(VERSION).tar.gz
-.PHONY: package-macosx package-macosx-zip package-translations pseudo-bundle
+.PHONY: package-macosx package-macosx-zip package-macosx-release package-translations pseudo-bundle
###############################################################################
# Mac OS X project
--
2.9.3 (Apple Git-75)
More information about the vlc-devel
mailing list