forked from boazy/TWEditorEnhanced
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (49 loc) · 1.7 KB
/
Copy pathbuild.gradle
File metadata and controls
53 lines (49 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apply plugin: 'application'
apply plugin: 'launch4j'
apply plugin: 'macAppBundle'
mainClassName = "TWEditor.Main"
version = "3.0.0"
launch4j {
mainClassName = project.mainClassName
icon = "$project.projectDir/res/TWEditor.ico"
jar = "lib/"+project.name+"-"+project.version+".jar"
}
macAppBundle {
mainClassName = project.mainClassName
appName = "The Witcher Editor"
icon = "res/TWEditor.icns"
bundleJRE = false
javaProperties.put("apple.laf.useScreenMenuBar", "true")
bundleExtras.put("NSHighResolutionCapable", "true")
backgroundImage = "res/InstallerBG.png"
backgroundScript = """
tell application "Finder"
tell disk "\${VOL_NAME}"
open
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container window to false
set the bounds of container window to {400, 200, 810, 490}
set viewOptions to the icon view options of container window
set arrangement of viewOptions to not arranged
set icon size of viewOptions to 72
set background picture of viewOptions to file ".background:\${DMG_BACKGROUND_IMG}"
set position of item "\${APP_NAME}.app" of container window to {120, 120}
set position of item "Applications" of container window to {340, 120}
close
open
update without registering applications
delay 2
end tell
end tell
"""
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'edu.sc.seis.gradle:launch4j:1.0.6'
classpath 'edu.sc.seis.gradle:macappbundle:2.0.0'
}
}