Commit d2e72f14 authored by David Fuhrmann's avatar David Fuhrmann

macOS package: Preserve timestamps when copying VLC.app

As the plugin cache requires matching timestamps, this avoids having
a stale cache later on.

refs #19448
parent 7f9d0a2d
...@@ -74,7 +74,7 @@ else !HAVE_DMGBUILD ...@@ -74,7 +74,7 @@ else !HAVE_DMGBUILD
## Create directory for DMG contents ## Create directory for DMG contents
mkdir -p "$(top_builddir)/vlc-$(VERSION)" mkdir -p "$(top_builddir)/vlc-$(VERSION)"
## Copy contents ## Copy contents
cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app" cp -Rp "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"
## Symlink to Applications so users can easily drag-and-drop the App to it ## Symlink to Applications so users can easily drag-and-drop the App to it
$(LN_S) -f /Applications "$(top_builddir)/vlc-$(VERSION)/" $(LN_S) -f /Applications "$(top_builddir)/vlc-$(VERSION)/"
## Create DMG ## Create DMG
...@@ -87,7 +87,7 @@ endif ...@@ -87,7 +87,7 @@ endif
package-macosx-zip: VLC.app package-macosx-zip: VLC.app
rm -f "$(top_builddir)/vlc-$(VERSION).zip" rm -f "$(top_builddir)/vlc-$(VERSION).zip"
mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/ mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/
cp -R $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)/VLC.app cp -Rp $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)/VLC.app
cd $(srcdir); cp -R AUTHORS COPYING README THANKS NEWS $(abs_top_builddir)/vlc-$(VERSION)/Goodies/ cd $(srcdir); cp -R AUTHORS COPYING README THANKS NEWS $(abs_top_builddir)/vlc-$(VERSION)/Goodies/
zip -r -y -9 $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION) zip -r -y -9 $(top_builddir)/vlc-$(VERSION).zip $(top_builddir)/vlc-$(VERSION)
rm -rf "$(top_builddir)/vlc-$(VERSION)" rm -rf "$(top_builddir)/vlc-$(VERSION)"
...@@ -95,7 +95,7 @@ package-macosx-zip: VLC.app ...@@ -95,7 +95,7 @@ package-macosx-zip: VLC.app
package-macosx-release: package-macosx-release:
rm -f "$(top_builddir)/vlc-$(VERSION)-release.zip" rm -f "$(top_builddir)/vlc-$(VERSION)-release.zip"
mkdir -p $(top_builddir)/vlc-$(VERSION)-release mkdir -p $(top_builddir)/vlc-$(VERSION)-release
cp -R $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)-release/ cp -Rp $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)-release/
cp $(srcdir)/extras/package/macosx/dmg/* $(top_builddir)/vlc-$(VERSION)-release/ cp $(srcdir)/extras/package/macosx/dmg/* $(top_builddir)/vlc-$(VERSION)-release/
cp "$(srcdir)/extras/package/macosx/codesign.sh" $(top_builddir)/vlc-$(VERSION)-release/ cp "$(srcdir)/extras/package/macosx/codesign.sh" $(top_builddir)/vlc-$(VERSION)-release/
zip -r -y -9 $(top_builddir)/vlc-$(VERSION)-release.zip $(top_builddir)/vlc-$(VERSION)-release zip -r -y -9 $(top_builddir)/vlc-$(VERSION)-release.zip $(top_builddir)/vlc-$(VERSION)-release
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment