[vlc-devel] [PATCH 1/2] macOS package.mak: Add release archive target

Jean-Baptiste Kempf jb at videolan.org
Thu Dec 28 00:09:45 CET 2017


LGTM. Please ship.

On Wed, 27 Dec 2017, at 19:48, david.fuhrmann at gmail.com wrote:
> 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)
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list