aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-06-10 16:17:51 -0400
committerCarl Dong <contact@carldong.me>2020-06-22 10:14:02 -0400
commit351beb5c9a67500bcdb9a6ffe15f30e6aca5aa28 (patch)
tree95ca38ed93a945a66f792621dea36982b1c31001 /contrib
parentfbcfcf695435c9587e9f9fd2809c4d5350b2558e (diff)
contrib: macdeploy: Use apple-sdk-tools instead of xar+pbzx
Diffstat (limited to 'contrib')
-rw-r--r--contrib/macdeploy/README.md23
1 files changed, 6 insertions, 17 deletions
diff --git a/contrib/macdeploy/README.md b/contrib/macdeploy/README.md
index 65ac67fde4..bf4656104f 100644
--- a/contrib/macdeploy/README.md
+++ b/contrib/macdeploy/README.md
@@ -27,24 +27,13 @@ archive. This makes the SDK less-trivial to extract on non-macOS machines. One
approach (tested on Debian Buster) is outlined below:
```bash
+# Install/clone tools needed for extracting Xcode.app
+apt install cpio
+git clone https://github.com/bitcoin-core/apple-sdk-tools.git
-apt install clang cpio git liblzma-dev libxml2-dev libssl-dev make
-
-git clone https://github.com/tpoechtrager/xar
-pushd xar/xar
-./configure
-make
-make install
-popd
-
-git clone https://github.com/NiklasRosenstein/pbzx
-pushd pbzx
-clang -llzma -lxar pbzx.c -o pbzx -Wl,-rpath=/usr/local/lib
-popd
-
-xar -xf Xcode_10.2.1.xip -C .
-
-./pbzx/pbzx -n Content | cpio -i
+# Unpack Xcode_10.2.1.xip and place the resulting Xcode.app in your current
+# working directory
+python3 apple-sdk-tools/extract_xcode.py -f Xcode_10.2.1.xip | cpio -d -i
```
On macOS the process is more straightforward: