upgrade(create-dmg)

This commit is contained in:
Jacob Heider 2023-04-24 13:52:34 -04:00
parent aa8279c103
commit e1e606cfa6
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -6,30 +6,20 @@ versions:
github: create-dmg/create-dmg/tags
strip: /^v/
provides:
linux: []
darwin:
- bin/create-dmg
platform: darwin
dependencies:
tea.xyz/gx/cc: c99
provides:
- bin/create-dmg
build:
dependencies:
tea.xyz/gx/cc: c99
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
script: 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
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