From aa2b0afa2a929cd5b2c3dedbada751f0a7d4d5e7 Mon Sep 17 00:00:00 2001 From: Daniel Jalkut Date: Sat, 1 Sep 2018 17:12:52 -0400 Subject: [PATCH] Switch to using ditto to create the zip file, since the way I was doing it wasn't working, and Apple actually documents ditto as creating a very Finder-like zip archive. Also change the ".build2" build directory back to ".build" --- buildNetNewsWire | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/buildNetNewsWire b/buildNetNewsWire index 64b2fa926..d4e5a9fdd 100755 --- a/buildNetNewsWire +++ b/buildNetNewsWire @@ -9,7 +9,7 @@ buildProductBundleName = "%s.app" % (buildProductName,) # WARNING: This will be deleted and replaced during build. It must # correspond to a directory you are willing to see deleted often. -buildDir = os.path.expanduser("~/.build2") +buildDir = os.path.expanduser("~/.build") # Remove previous build folder and re-create it print("Removing existing build dir: %s" % buildDir) @@ -44,7 +44,9 @@ if os.path.exists(currentVersionZipPath): print("Copying build product from \"%s\" to \"%s\"" % (currentVersionBuiltAppPath, currentVersionStagedAppPath)) subprocess.call(["ditto", currentVersionBuiltAppPath, currentVersionStagedAppPath]) print("Zipping to \"%s\"" % currentVersionZipName) -subprocess.call(["zip", "--symlinks", "-r", currentVersionZipPath, currentVersionBuiltAppPath]) + +# Documented in "man ditto" as creating an archive "similarly to the Finder's Compress functionality" +subprocess.call(["ditto", "-c", "-k", "--sequesterRsrc", "--keepParent", currentVersionBuiltAppPath, currentVersionZipPath]) # Archive a permanent copy archiveDir = os.path.expanduser("~/Archive/Releases")