2023-07-02 07:59:46 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/cirruslabs/tart/archive/refs/tags/{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: cirruslabs/tart
|
2023-07-02 08:25:55 +03:00
|
|
|
# NOTE: 1.x uses non-open source license
|
|
|
|
# https://tart.run/blog/2023/02/11/changing-tart-license/
|
|
|
|
ignore: /^[1-9]/
|
2023-07-02 07:59:46 +03:00
|
|
|
|
|
|
|
platforms:
|
|
|
|
- darwin/aarch64
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
rust-lang.org: ^1.54
|
|
|
|
rust-lang.org/cargo: ^0
|
|
|
|
# apple.com/xcode: >=14.1
|
|
|
|
# swift.org: 5
|
|
|
|
script:
|
|
|
|
- run: |
|
|
|
|
curl -L $SOFTNET | tar -zxf - --strip-components=1
|
|
|
|
cargo install --locked --path . --root {{prefix}}
|
|
|
|
working-directory: softnet
|
|
|
|
- swift build --disable-sandbox -c release
|
|
|
|
- codesign -f -s - --entitlement Resources/tart.entitlements .build/release/tart
|
|
|
|
- run: cp "$SRCROOT"/.build/release/tart .
|
|
|
|
working-directory: ${{prefix}}/bin
|
|
|
|
env:
|
2023-07-02 08:25:55 +03:00
|
|
|
SOFTNET: https://github.com/cirruslabs/softnet/archive/refs/tags/0.6.2.tar.gz
|
2023-07-02 07:59:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/tart
|
|
|
|
|
|
|
|
test:
|
|
|
|
script:
|
2023-07-02 08:32:03 +03:00
|
|
|
- ': >empty.ispw'
|
2023-07-02 08:49:35 +03:00
|
|
|
- OUT=$(tart create
|
2023-07-02 08:32:03 +03:00
|
|
|
--from-ipsw empty.ipsw
|
2023-07-02 08:49:35 +03:00
|
|
|
test 2>&1 || true)
|
|
|
|
- 'test "$OUT" = "Error: The restore image failed to load. Unable to create sandbox extensions."'
|
2023-07-02 07:59:46 +03:00
|
|
|
env:
|
2023-07-02 08:32:03 +03:00
|
|
|
TART_HOME: $PWD
|