Applied macosapp. Closes #63

This commit is contained in:
huangyuhui
2016-05-16 12:55:35 +08:00
parent 61a8ab5199
commit ca3ed47d21
5 changed files with 61 additions and 25 deletions

View File

@@ -15,6 +15,21 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see {http://www.gnu.org/licenses/}.
*/
buildscript {
repositories {
mavenCentral();
dependencies {
classpath 'edu.sc.seis.gradle:launch4j:1.0.6'
classpath 'me.tatarka:gradle-retrolambda:3.1.0'
}
}
}
plugins {
id "edu.sc.seis.macAppBundle" version "2.1.6"
}
apply plugin: 'launch4j'
apply plugin: 'me.tatarka.retrolambda'
@@ -41,14 +56,11 @@ version = mavenVersion
String mavenArtifactId = name
buildscript {
repositories {
mavenCentral();
dependencies {
classpath 'edu.sc.seis.gradle:launch4j:1.0.6'
classpath 'me.tatarka:gradle-retrolambda:3.1.0'
}
}
task macAppCompressed(type: Zip, dependsOn: createApp) {
archiveName "HMCSM-$mavenVersion-MacOSApp.zip"
include '**'
destinationDir file("$buildDir/libs/")
from "$buildDir/macApp"
}
configure(install.repositories.mavenInstaller) {
@@ -87,3 +99,4 @@ processResources {
}
build.dependsOn makeExecutable
build.dependsOn macAppCompressed