mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
contrib: macdeploy: Use apple-sdk-tools instead of xar+pbzx
This commit is contained in:
parent
fbcfcf6954
commit
351beb5c9a
1 changed files with 6 additions and 17 deletions
|
@ -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:
|
approach (tested on Debian Buster) is outlined below:
|
||||||
|
|
||||||
```bash
|
```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
|
# Unpack Xcode_10.2.1.xip and place the resulting Xcode.app in your current
|
||||||
|
# working directory
|
||||||
git clone https://github.com/tpoechtrager/xar
|
python3 apple-sdk-tools/extract_xcode.py -f Xcode_10.2.1.xip | cpio -d -i
|
||||||
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
|
|
||||||
```
|
```
|
||||||
|
|
||||||
On macOS the process is more straightforward:
|
On macOS the process is more straightforward:
|
||||||
|
|
Loading…
Add table
Reference in a new issue