mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
+github.com/create-dmg/create-dmg (#404)
* +github.com/create-dmg/create-dmg --------- Co-authored-by: neil <neil@neils-MacBook-Pro.local>
This commit is contained in:
parent
44f8306452
commit
e9d511f451
1 changed files with 33 additions and 0 deletions
33
projects/github.com/create-dmg/create-dmg/package.yml
Normal file
33
projects/github.com/create-dmg/create-dmg/package.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
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
|
Loading…
Reference in a new issue