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 github: create-dmg/create-dmg/tags
strip: /^v/ strip: /^v/
provides: platform: darwin
linux: []
darwin:
- bin/create-dmg
dependencies: provides:
tea.xyz/gx/cc: c99 - bin/create-dmg
build: build:
dependencies: dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*' tea.xyz/gx/make: '*'
script: | script: make prefix={{prefix}} install
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: | test: |
if test "{{hw.platform}}" = "darwin"; then
create-dmg --version create-dmg --version
touch Brew-Eula.txt touch Brew-Eula.txt
echo "Eula" >> Brew-Eula.txt echo "Eula" >> Brew-Eula.txt
mkdir -p Test-Source mkdir -p Test-Source
mkdir -p Test-Source/Brew.app mkdir -p Test-Source/Brew.app
create-dmg --sandbox-safe --eula Brew-Eula.txt Brew-Test.dmg Test-Source create-dmg --sandbox-safe --eula Brew-Eula.txt Brew-Test.dmg Test-Source
fi