From a6e22a06670d3f3e285bbd3f4b46b90df9e6593a Mon Sep 17 00:00:00 2001 From: Zorg Date: Mon, 28 Aug 2023 21:54:48 -0700 Subject: [PATCH] Fix make release not building distribution successfully (#2430) For some reason, the default BUILDDIR that was set was problematic. We are now defaulting BUILDDIR inside of ./build which resolves this issue. This also means by default, builds are not placed inside of system temp directories anymore. I do not know when this stopped working or why. --- Makefile | 2 +- README.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 503e3adc..fa99a23e 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ all: build ifndef BUILDDIR - BUILDDIR := $(shell mktemp -d "$(TMPDIR)/Sparkle.XXXXXX") + BUILDDIR := $(shell mkdir -p "build" && mktemp -d "build/Sparkle.XXXXXX") endif localizable-strings: diff --git a/README.markdown b/README.markdown index f94fabbe..20ce8a43 100644 --- a/README.markdown +++ b/README.markdown @@ -54,7 +54,7 @@ If you are adding a symbol to the public API you must decorate the declaration w You do not usually need to build a Sparkle distribution unless you're making changes to Sparkle itself. -To build a Sparkle distribution, `cd` to the root of the Sparkle source tree and run `make release`. Sparkle-*VERSION*.tar.xz (or .bz2) will be created in a temporary directory and revealed in Finder after the build has completed. +To build a Sparkle distribution, `cd` to the root of the Sparkle source tree and run `make release`. Sparkle-*VERSION*.tar.xz (or .bz2) will be created and revealed in Finder after the build has completed. Alternatively, build the Distribution scheme in the Xcode UI.