pantry/projects/github.com/create-dmg/create-dmg/package.yml
Neil e9d511f451
+github.com/create-dmg/create-dmg (#404)
* +github.com/create-dmg/create-dmg
---------

Co-authored-by: neil <neil@neils-MacBook-Pro.local>
2023-02-17 13:12:27 +08:00

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