-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
51 lines (46 loc) · 1.67 KB
/
build.gradle
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
plugins {
id 'application'
id 'edu.sc.seis.launch4j' version '2.4.6'
id 'edu.sc.seis.macAppBundle' version "2.3.0"
}
dependencies {
implementation 'com.google.guava:guava:29.0-jre'
}
mainClassName = "TWEditor.Main"
version = "3.0.1"
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
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
"""
}