Fixes after merge pull request

This commit is contained in:
emmanue1 2015-06-22 20:41:11 +02:00
parent 51f174fbf9
commit 347799254c
2 changed files with 22 additions and 33 deletions

View File

@ -32,7 +32,7 @@ generate _"build/install/jd-gui-windows/jd-gui.exe"_
```
> gradle buildDeb
```
generate Ubuntu/Debian Installer
generate Ubuntu/Debian installer
##How to launch JD-GUI ?
- Double-click on _"jd-gui-x.y.z.jar"_

View File

@ -1,21 +1,17 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.netflix.nebula:gradle-ospackage-plugin:2.2.6'
classpath 'org.spockframework:spock-core:1.0-groovy-2.3'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.netflix.nebula:gradle-ospackage-plugin:2.2.6'
classpath 'org.spockframework:spock-core:1.0-groovy-2.3'
}
}
apply plugin: 'java'
apply plugin: 'distribution'
apply plugin: "nebula.os-package"
apply plugin: 'nebula.os-package'
// Common configuration //
allprojects {
@ -44,10 +40,8 @@ allprojects {
provided
compile.extendsFrom provided
}
}
// 'cleanIdea' task extension //
cleanIdea {
file(project.name + '.iws').delete()
@ -163,30 +157,25 @@ distributions {
ospackage {
packageName = project.name
description = 'A Java Decompoler '
version = '0.0.1'
release = 1
description = 'A Java Decompiler'
os = LINUX
url = 'https://github.com/java-decompiler/jd-gui'
license = file('LICENSE')
into '/opt/'+ project.name
from ('build/libs/'){
fileMode = 0755
into '/opt/' + project.name
from ('build/libs/') {
fileMode = 0755
}
from ('src/linux/resources/'){
fileMode = 0755
from ('src/linux/resources/') {
fileMode = 0755
}
from ('app/src/main/resources/images/jd_icon_128.png'){
fileMode = 0755
from ('app/src/main/resources/images/jd_icon_128.png') {
fileMode = 0755
}
from 'LICENSE', 'NOTICE', 'README.md'
postInstall 'cd /opt/'+ project.name+'; ln -s ./jd-gui-'+project.version+'.jar ./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; xdg-desktop-menu uninstall ./*.desktop'
preUninstall 'cd /opt/'+ project.name+'; rm -f ./jd-gui.jar; xdg-desktop-menu uninstall ./*.desktop'
}
installOsxDist.dependsOn jar, copyAndReplaceVariablesInInfoPlist