pantry/projects/fastlane.tools/package.yml
Max Howell 2b1bb60caa
+fastlane.tools (#441)
* +fastlane.tools

Closes #363

* wip

* wip

* wip

* wip
2023-03-03 09:45:44 -07:00

46 lines
953 B
YAML

distributable:
url: https://github.com/fastlane/fastlane/archive/{{version}}.tar.gz
strip-components: 1
versions:
github: fastlane/fastlane/releases/tags
dependencies:
ruby-lang.org: ^3.1
rubygems.org: '*'
build:
dependencies:
rubygems.org: '*'
tea.xyz/gx/make: '*'
tea.xyz/gx/cc: '*'
env:
GEM_HOME: ${{prefix}}
GEM_PATH: ${{prefix}}
script: |
gem build fastlane.gemspec
gem install \
--no-user-install \
--bindir={{prefix}}/gems/bin \
--no-document \
fastlane-{{version}}.gem
mkdir "{{prefix}}"/bin
mv props/fastlane "{{prefix}}"/bin
# fails to code sign and non-essential
rm -rf "{{prefix}}"/gems/terminal-notifier-*
provides:
- bin/fastlane
test:
env:
# or writes a bunch of warnings to stdout
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
script: |
out="$(fastlane --version 2>/dev/null | tail -n1)"
test "$out" = "fastlane {{version}}"