Skip to content

Commit

Permalink
Fixes after merge pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Jun 22, 2015
1 parent 51f174f commit 3477992
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 32 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"_
Expand Down
51 changes: 20 additions & 31 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
buildscript {
repositories {
jcenter()
}
buildscript {
repositories {
jcenter()
}

dependencies {
classpath 'com.netflix.nebula:gradle-ospackage-plugin:2.2.6'
classpath 'org.spockframework:spock-core:1.0-groovy-2.3'

}
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 {
Expand Down Expand Up @@ -44,10 +40,8 @@ allprojects {
provided
compile.extendsFrom provided
}

}


// 'cleanIdea' task extension //
cleanIdea {
file(project.name + '.iws').delete()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3477992

Please sign in to comment.