Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Keep Sparkle's checkout out of its build folders' paths

Țugui Dragoș09a61bdcca37
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 722b5676..96210b99 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -23,7 +23,7 @@ before the fix is written, and the result is checked where it shows, as [AGENTS.
package's tests need no signing.
- Two dependencies: Apple's swift-argument-parser, which Xcode fetches, and Sparkle, which updates Peel. Sparkle is
built from its source, at the commit `Scripts/build_sparkle.sh` names, with arm64e and without its XPC services: run
- the script once before the first build. When that commit changes, move `build/Sparkle` to the Trash first, since
+ the script once before the first build. When that commit changes, move `build/SparkleSource` to the Trash first, since
the script refuses a checkout at any other commit, then run it again.
```bash
diff --git a/Scripts/build_sparkle.sh b/Scripts/build_sparkle.sh
index fbcbbda4..9de28fda 100644
--- a/Scripts/build_sparkle.sh
+++ b/Scripts/build_sparkle.sh
@@ -4,13 +4,16 @@
# and Sparkle's XPC services are left out, since Sparkle uses them only in a sandboxed app.
#
# Usage: zsh Scripts/build_sparkle.sh (run once before building Peel, and again when the version below changes,
-# after moving build/Sparkle to the Trash)
+# after moving build/SparkleSource to the Trash)
set -euo pipefail
cd "$(dirname "$0")/.."
version=2.10.0
commit=eef1a539a373c1f1a320624b1130fc5de7b2e100
-source=build/Sparkle
+# No build folder's path may begin with the checkout's, even inside a name (build/Sparkle and build/SparkleBuild):
+# the compiler then writes the modules it built relative to the source, cutting the path there, and dsymutil can't
+# find them.
+source=build/SparkleSource
if [ ! -d "$source" ]; then
git -c advice.detachedHead=false clone --quiet --depth 1 --branch "$version" \