mirror of https://github.com/lawrancej/logisim.git
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:
parent
9300d34fab
commit
3f6d59af82
22
build.gradle
22
build.gradle
|
@ -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"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue