mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
upgrade(create-dmg)
This commit is contained in:
parent
aa8279c103
commit
e1e606cfa6
1 changed files with 11 additions and 21 deletions
|
@ -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
|
|
Loading…
Reference in a new issue