mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
e9d511f451
* +github.com/create-dmg/create-dmg --------- Co-authored-by: neil <neil@neils-MacBook-Pro.local>
33 lines
No EOL
778 B
YAML
33 lines
No EOL
778 B
YAML
distributable:
|
|
url: https://github.com/create-dmg/create-dmg/archive/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: create-dmg/create-dmg/tags
|
|
strip: /^v/
|
|
|
|
provides:
|
|
- bin/create-dmg
|
|
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/make: '*'
|
|
script: |
|
|
if test "{{hw.platform}}" != "darwin"; then
|
|
mkdir -p {{prefix}}
|
|
echo "create-dmg is only supported on mac" >> {{prefix}}/mac-only
|
|
exit 0
|
|
fi
|
|
make prefix={{prefix}} install
|
|
test: |
|
|
if test "{{hw.platform}}" = "darwin"; then
|
|
create-dmg --version
|
|
touch Brew-Eula.txt
|
|
echo "Eula" >> Brew-Eula.txt
|
|
mkdir -p Test-Source
|
|
mkdir -p Test-Source/Brew.app
|
|
create-dmg --sandbox-safe --eula Brew-Eula.txt Brew-Test.dmg Test-Source
|
|
fi |