pantry/projects/tart.run/package.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

2023-07-02 07:59:46 +03:00
distributable:
# vendoring for newer versions
# url: https://github.com/cirruslabs/tart/archive/refs/tags/{{version}}.tar.gz
url: https://github.com/cirruslabs/tart/releases/download/{{version}}/tart.tar.gz
warnings:
- vendored
2023-07-02 07:59:46 +03:00
versions:
github: cirruslabs/tart/releases
2023-07-02 07:59:46 +03:00
platforms:
- darwin/aarch64
#FIXME proper system for re-using pre-built binaries
# we must require the vendor to provide signatures against a published public
# key. If they dont then really we should build ourselves or warn the user
# about the fact.
# The thing is, we trust the sources implicitly currently because signing is
# so rare. The only way wide spread signing will occur is via our protocol.
# This only works on macOS, arm64, monterey and above. It requires xcode 14.1 to build
2023-07-02 07:59:46 +03:00
build:
script:
- mkdir -p "{{prefix}}/bin"
- cp -a tart.app "{{prefix}}"
- cp props/tart-shim "{{prefix}}"/bin/tart
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
--from-ipsw empty.ipsw
test 2>&1 || true)
2023-07-02 08:49:35 +03:00
- 'test "$OUT" = "Error: The restore image failed to load. Unable to create sandbox extensions."'
2023-07-02 07:59:46 +03:00
env:
TART_HOME: $PWD