Skip to content

Commit 351beb5

Browse files
committed
contrib: macdeploy: Use apple-sdk-tools instead of xar+pbzx
1 parent fbcfcf6 commit 351beb5

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

contrib/macdeploy/README.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,13 @@ archive. This makes the SDK less-trivial to extract on non-macOS machines. One
2727
approach (tested on Debian Buster) is outlined below:
2828

2929
```bash
30+
# Install/clone tools needed for extracting Xcode.app
31+
apt install cpio
32+
git clone https://github.com/bitcoin-core/apple-sdk-tools.git
3033

31-
apt install clang cpio git liblzma-dev libxml2-dev libssl-dev make
32-
33-
git clone https://github.com/tpoechtrager/xar
34-
pushd xar/xar
35-
./configure
36-
make
37-
make install
38-
popd
39-
40-
git clone https://github.com/NiklasRosenstein/pbzx
41-
pushd pbzx
42-
clang -llzma -lxar pbzx.c -o pbzx -Wl,-rpath=/usr/local/lib
43-
popd
44-
45-
xar -xf Xcode_10.2.1.xip -C .
46-
47-
./pbzx/pbzx -n Content | cpio -i
34+
# Unpack Xcode_10.2.1.xip and place the resulting Xcode.app in your current
35+
# working directory
36+
python3 apple-sdk-tools/extract_xcode.py -f Xcode_10.2.1.xip | cpio -d -i
4837
```
4938

5039
On macOS the process is more straightforward:

0 commit comments

Comments
 (0)