integrated dmg package creation for macOS

This commit is contained in:
Martin Lippert
2017-08-17 11:56:27 +02:00
parent da17bf6e32
commit e1aa67f5a5
3 changed files with 71 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
<ul>
<li><a href="http://download.springsource.com/snapshot/STS4/nightly/dist/@MAJOR-TARGET@/spring-boot-ide-@QUALIFIER@-@TARGET@-win32.win32.x86_64.zip">spring-boot-ide-@QUALIFIER@-@TARGET@-win32.win32.x86_64.zip</li>
<li><a href="http://download.springsource.com/snapshot/STS4/nightly/dist/@MAJOR-TARGET@/spring-boot-ide-@QUALIFIER@-@TARGET@-macosx.cocoa.x86_64.tar.gz">spring-boot-ide-@QUALIFIER@-@TARGET@-macosx.cocoa.x86_64.tar.gz</li>
<li><a href="http://download.springsource.com/snapshot/STS4/nightly/dist/@MAJOR-TARGET@/spring-boot-ide-@QUALIFIER@-@TARGET@-macosx.cocoa.x86_64.dmg">spring-boot-ide-@QUALIFIER@-@TARGET@-macosx.cocoa.x86_64.dmg</li>
<li><a href="http://download.springsource.com/snapshot/STS4/nightly/dist/@MAJOR-TARGET@/spring-boot-ide-@QUALIFIER@-@TARGET@-linux.gtk.x86_64.tar.gz">spring-boot-ide-@QUALIFIER@-@TARGET@-linux.gtk.x86_64.tar.gz</li>
</ul>

View File

@@ -120,6 +120,53 @@
</goals>
</execution>
<execution>
<id>osx-dmg-creation</id>
<phase>verify</phase>
<configuration>
<target>
<exec executable="/usr/local/bin/appdmg" failonerror="true">
<arg value="${project.build.directory}/../springbootide-dmg-config-${dist.target.major}.json"/>
<arg value="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-macosx.cocoa.x86_64.dmg"/>
</exec>
<delete file="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-macosx.cocoa.x86_64.tar.gz"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>osx-dmg-signing</id>
<phase>verify</phase>
<configuration>
<skip>${skip.osx.signing}</skip>
<target>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<property name="dmgName" value="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-macosx.cocoa.x86_64.dmg" />
<exec executable="codesign" failonerror="true">
<arg value="--verbose"/>
<arg value="--keychain"/>
<arg value="${env.KEYCHAIN}"/>
<arg value="-s"/>
<arg value="Developer ID Application: Trevor Marshall"/>
<arg value="${dmgName}"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>upload-product-bundles</id>
<phase>deploy</phase>
@@ -129,6 +176,13 @@
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<taskdef resource="org/springframework/build/aws/ant/antlib.xml" />
<checksum file="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-macosx.cocoa.x86_64.dmg" algorithm="SHA1" fileext=".sha1" />
<checksum file="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-macosx.cocoa.x86_64.dmg" algorithm="MD5" fileext=".md5" />
<checksum file="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-linux.gtk.x86_64.tar.gz" algorithm="SHA1" fileext=".sha1" />
<checksum file="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-linux.gtk.x86_64.tar.gz" algorithm="MD5" fileext=".md5" />
<checksum file="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-win32.win32.x86_64.zip" algorithm="SHA1" fileext=".sha1" />
<checksum file="${project.build.directory}/products/spring-boot-ide-${unqualifiedVersion}.${p2.qualifier}-${dist.target}-win32.win32.x86_64.zip" algorithm="MD5" fileext=".md5" />
<s3 accessKey="${dist.accessKey}" secretKey="${dist.secretKey}">
<delete bucketName="${dist.bucket}">
@@ -139,6 +193,9 @@
<include name="spring-boot-ide*.tar.gz" />
<include name="spring-boot-ide*.tar.gz.md5" />
<include name="spring-boot-ide*.tar.gz.sha1" />
<include name="spring-boot-ide*.dmg" />
<include name="spring-boot-ide*.dmg.md5" />
<include name="spring-boot-ide*.dmg.sha1" />
</fileset>
</delete>
@@ -151,6 +208,9 @@
<include name="spring-boot-ide*.tar.gz" />
<include name="spring-boot-ide*.tar.gz.md5" />
<include name="spring-boot-ide*.tar.gz.sha1" />
<include name="spring-boot-ide*.dmg" />
<include name="spring-boot-ide*.dmg.md5" />
<include name="spring-boot-ide*.dmg.sha1" />
</fileset>
</upload>

View File

@@ -0,0 +1,10 @@
{
"title": "Spring Boot IDE",
"icon": "../org.springframework.boot.ide.branding/sts.icns",
"contents": [
{ "x": 192, "y": 100, "type": "file", "path": "target/products/org.springframework.boot.ide/macosx/cocoa/x86_64/SpringBootIDE.app" },
{ "x": 448, "y": 100, "type": "link", "path": "/Applications" },
{ "x": 1000, "y": 2000, "type": "file", "path": "../org.springframework.boot.ide.branding/sts.icns", "name": ".VolumeIcon.icns" }
],
"format": "UDBZ"
}