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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
diff --git i/build.gradle w/build.gradle
index 5163340..0302f5c 100644
--- i/build.gradle
+++ w/build.gradle
@@ -3,7 +3,6 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.netflix.nebula:gradle-ospackage-plugin:5.3.0' // RPM & DEB support
classpath 'edu.sc.seis.gradle:launch4j:2.4.4'
classpath 'net.sf.proguard:proguard-gradle:6.1.0'
}
@@ -12,7 +11,6 @@ buildscript {
apply plugin: 'java'
apply plugin: 'distribution'
apply plugin: 'edu.sc.seis.launch4j'
-apply plugin: 'nebula.ospackage'
// Common configuration //
rootProject.version='1.6.6'
@@ -121,34 +119,6 @@ launch4j {
bundledJrePath = '%JAVA_HOME%'
}
-// Packages for Linux //
-ospackage {
- buildDeb.dependsOn 'proguard'
- buildRpm.dependsOn 'proguard'
-
- license = file('LICENSE')
- maintainer 'Emmanuel Dupuy <emmanue1@users.noreply.github.com>'
- os LINUX
- packageDescription 'JD-GUI, a standalone graphical utility that displays Java sources from CLASS files'
- packageGroup 'java'
- packageName project.name
- release '0'
- summary 'A Java Decompiler'
- url 'https://github.com/java-decompiler/jd-gui'
-
- into '/opt/' + project.name
- from (proguard.outJarFiles[0]) {
- fileMode 0755
- }
- from ('src/linux/resources/') {
- fileMode 0755
- }
- from 'LICENSE', 'NOTICE', 'README.md'
-
- postInstall 'cd /opt/' + project.name + '; ln -s ./' + file(proguard.outJarFiles[0]).name + ' ./jd-gui.jar; xdg-icon-resource install --size 128 --novendor ./jd_icon_128.png jd-gui; xdg-desktop-menu install ./*.desktop'
- preUninstall 'cd /opt/' + project.name + '; rm -f ./jd-gui.jar; rm -fr ./ext; xdg-desktop-menu uninstall ./*.desktop'
-}
-
// Distributions for OSX and Windows //
distributions {
osx.contents {
@@ -183,6 +153,3 @@ distributions {
osxDistTar.dependsOn 'proguard'
osxDistZip.dependsOn 'proguard'
}
-
-build.finalizedBy buildDeb
-build.finalizedBy buildRpm
diff --git i/src/linux/resources/jd-gui.desktop w/src/linux/resources/jd-gui.desktop
index 6ba8b03..fab0ac1 100644
--- i/src/linux/resources/jd-gui.desktop
+++ w/src/linux/resources/jd-gui.desktop
@@ -2,7 +2,7 @@
Comment=Java Decompiler JD-GUI
Terminal=false
Name=JD-GUI
-Exec=java -jar /opt/jd-gui/jd-gui.jar
+Exec=/usr/bin/jd-gui
Type=Application
Icon=jd-gui
MimeType=application/java;application/java-vm;application/java-archive
|