Added MacApp Bundle

The copyIcon task is not finding the source, the icon must be copied
manually from scripts/data/Logisim.app/ to  … ???
This commit is contained in:
Philippe Rochat 2014-11-04 00:02:44 +01:00
parent 9300d34fab
commit 3f6d59af82
3 changed files with 21 additions and 1 deletions

View File

@ -3,9 +3,11 @@ apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'launch4j'
apply plugin: 'sonar-runner'
apply plugin: 'macAppBundle'
mainClassName = "com.cburch.logisim.Main"
version = '2.7.2'
title = 'Logisim'
description = 'Logisim: Logic Simulator'
test.scanForTestClasses = false
@ -13,6 +15,14 @@ task wrapper(type: Wrapper) {
gradleVersion = '1.8'
}
jar {
manifest {
attributes 'Implementation-Title': title,
'Implementation-Version': version,
'Main-Class': mainClassName
}
}
launch4j {
// launch4j should know this from the application plugin, right?
mainClassName = project.mainClassName
@ -30,7 +40,9 @@ buildscript {
classpath \
'edu.sc.seis:gradle-launch4j:1.0.5',
'net.sourceforge.nekohtml:nekohtml:1.9.18',
'javax.help:javahelp:2.0.05'
'javax.help:javahelp:2.0.05',
'edu.sc.seis.gradle:macappbundle:2.0.0'
}
}
@ -108,3 +120,11 @@ processResources << {
}
}
}
macAppBundle {
mainClassName = "com.cburch.logisim.Main"
icon = "LogisimApp.icns"
}

0
gradlew vendored Normal file → Executable file
View File

Binary file not shown.