Skip to content

Commit 43ba2af

Browse files
committed
Prepares 1.1.0
1 parent 587ed2d commit 43ba2af

File tree

4 files changed

+26
-12
lines changed

4 files changed

+26
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ for instant access to methods and fields.
1919
```
2020
generate _"build/libs/jd-gui-x.y.z.jar"_
2121
```
22-
> gradle build installOsxDist
22+
> gradle installOsxDist
2323
```
2424
generate _"build/install/jd-gui-osx/JD-GUI.app"_
2525
```
2626
> iexplore http://sourceforge.net/projects/launch4j/files/launch4j-3/3.7/launch4j-3.7-win32.zip/download
2727
> unzip launch4j-3.7-win32.zip
28-
> gradle -DLAUNCH4J_HOME=.../path/to/launch4j-3.7-win32 launch4j installWindowsDist
28+
> gradle -DLAUNCH4J_HOME=.../path/to/launch4j-3.7-win32 installWindowsDist
2929
```
3030
generate _"build/install/jd-gui-windows/jd-gui.exe"_
3131

app/src/main/groovy/jd/gui/view/MainDescription.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ dialog(
263263
hbox {
264264
panel(layout:new GridLayout(2,2), opaque:false, border:emptyBorder([5,10,5,50])) {
265265
label(text: 'JD-GUI')
266-
label(text: 'version 1.0.0')
266+
label(text: 'version 1.1.0')
267267
label(text: 'JD-Core')
268268
label(text: 'version 0.7.1')
269269
}

build.gradle

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'distribution'
33

44
// Common configuration //
55
allprojects {
6-
version='1.0.0'
6+
version='1.1.0'
77

88
apply plugin: 'eclipse'
99
apply plugin: 'idea'
@@ -107,12 +107,23 @@ task launch4j(type: Exec, dependsOn: [':jar', ':launch4jConfig']) {
107107
}
108108

109109
// Distributions for OSX and Windows //
110+
task installOsxDistConfig(type: Copy) {
111+
from 'src/osx/resources/Info.plist'
112+
into 'build/distributions/osx'
113+
expand(
114+
VERSION: project.version
115+
)
116+
}
117+
110118
distributions {
111119
osx {
112120
contents {
113-
into('JD-GUI.app/Contents/Resources/Java') {
114-
from jar.archivePath
115-
}
121+
into('JD-GUI.app/Contents') {
122+
from 'build/distributions/osx'
123+
}
124+
into('JD-GUI.app/Contents/Resources/Java') {
125+
from jar.archivePath
126+
}
116127
from 'LICENSE', 'NOTICE', 'README.md'
117128
}
118129
}
@@ -123,3 +134,6 @@ distributions {
123134
}
124135
}
125136
}
137+
installOsxDist.dependsOn build
138+
installOsxDist.dependsOn installOsxDistConfig
139+
installWindowsDist.dependsOn launch4j

src/osx/dist/JD-GUI.app/Contents/Info.plist renamed to src/osx/resources/Info.plist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<key>CFBundleDevelopmentRegion</key> <string>English</string>
66
<key>CFBundleExecutable</key> <string>universalJavaApplicationStub.sh</string>
77
<key>CFBundleName</key> <string>JD-GUI</string>
8-
<key>CFBundleGetInfoString</key> <string>JD-GUI version 1.0.0, Copyright 2008-2015 Emmanuel Dupuy</string>
8+
<key>CFBundleGetInfoString</key> <string>JD-GUI version ${VERSION}, Copyright 2008-2015 Emmanuel Dupuy</string>
99
<key>CFBundleIconFile</key> <string>jd-gui.icns</string>
1010
<key>CFBundleIdentifier</key> <string>jd.jd-gui</string>
1111
<key>CFBundleInfoDictionaryVersion</key> <string>6.0</string>
1212
<key>CFBundlePackageType</key> <string>APPL</string>
13-
<key>CFBundleLongVersionString</key> <string>1.0.0, Copyright 2008-2015 Emmanuel Dupuy</string>
14-
<key>CFBundleShortVersionString</key> <string>1.0.0</string>
13+
<key>CFBundleLongVersionString</key> <string>${VERSION}, Copyright 2008-2015 Emmanuel Dupuy</string>
14+
<key>CFBundleShortVersionString</key> <string>${VERSION}</string>
1515
<key>CSResourcesFileMapped</key> <true/>
1616
<key>LSRequiresCarbon</key> <true/>
1717
<key>NSHumanReadableCopyright</key> <string>Copyright 2008-2015 Emmanuel Dupuy</string>
@@ -83,8 +83,8 @@
8383
<dict>
8484
<key>MainClass</key> <string>jd.gui.OsxApp</string>
8585
<key>JVMVersion</key> <string>1.7+</string>
86-
<key>ClassPath</key> <string>$JAVAROOT/jd-gui-1.0.0.jar</string>
87-
<key>WorkingDirectory</key> <string>$JAVAROOT</string>
86+
<key>ClassPath</key> <string>\$JAVAROOT/jd-gui-${VERSION}.jar</string>
87+
<key>WorkingDirectory</key> <string>\$JAVAROOT</string>
8888
<key>Properties</key>
8989
<dict>
9090
<key>apple.laf.useScreenMenuBar</key>

0 commit comments

Comments
 (0)