提交 15e1e1df 编写于 作者: S Skylot

build jadx-gui.exe

上级 37ed9cd2
...@@ -13,7 +13,7 @@ stages: ...@@ -13,7 +13,7 @@ stages:
build: build:
stage: build stage: build
script: script:
- sed -i " 1 s/.*/&-b$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)/" version - sed -i " 1 s/.*/&-glb$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)/" version
- cat version - cat version
- ./gradlew -g /cache/.gradle clean build jacocoTestReport - ./gradlew -g /cache/.gradle clean build jacocoTestReport
- ./gradlew -g /cache/.gradle clean sonarqube -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_TOKEN - ./gradlew -g /cache/.gradle clean sonarqube -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_TOKEN
...@@ -21,3 +21,4 @@ build: ...@@ -21,3 +21,4 @@ build:
artifacts: artifacts:
paths: paths:
- build/jadx*.zip - build/jadx*.zip
- build/jadx*.exe
...@@ -3,7 +3,7 @@ jdk: ...@@ -3,7 +3,7 @@ jdk:
- oraclejdk8 - oraclejdk8
env: env:
- TERM=dumb - TERM=dumb GRADLE_OPTS="-Dorg.gradle.daemon=false"
before_install: before_install:
- chmod +x gradlew - chmod +x gradlew
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
}, },
"files": [ "files": [
{ {
"includePattern": "build/(jadx.*\.zip)", "includePattern": "build/(jadx.*\.(zip|exe))",
"uploadPattern": "$1", "uploadPattern": "$1",
"matrixParams": { "matrixParams": {
"override": 1 "override": 1
......
...@@ -96,17 +96,29 @@ task pack(type: Zip, dependsOn: copyArtifacts) { ...@@ -96,17 +96,29 @@ task pack(type: Zip, dependsOn: copyArtifacts) {
from copyArtifacts.destinationDir from copyArtifacts.destinationDir
} }
task dist(dependsOn: pack) { task copyExe(type: Copy, dependsOn: 'jadx-gui:createExe') {
group 'jadx'
description = 'Copy exe to build dir'
destinationDir buildDir
from tasks.getByPath('jadx-gui:createExe').outputs
include '*.exe'
}
task dist(dependsOn: [pack, copyExe]) {
group 'jadx'
description = 'Build jadx distribution zip' description = 'Build jadx distribution zip'
} }
task samples(dependsOn: 'jadx-samples:samples') { task samples(dependsOn: 'jadx-samples:samples') {
group 'jadx'
} }
task testAppCheck(dependsOn: 'jadx-test-app:testAppCheck') { task testAppCheck(dependsOn: 'jadx-test-app:testAppCheck') {
group 'jadx'
} }
task cleanBuildDir(type: Delete) { task cleanBuildDir(type: Delete) {
group 'jadx'
delete buildDir delete buildDir
} }
......
plugins {
id 'edu.sc.seis.launch4j' version '2.4.3'
id 'com.github.johnrengelman.shadow' version '2.0.2'
}
apply plugin: 'application' apply plugin: 'application'
mainClassName = 'jadx.gui.JadxGUI' mainClassName = 'jadx.gui.JadxGUI'
...@@ -40,6 +45,20 @@ startScripts { ...@@ -40,6 +45,20 @@ startScripts {
} }
} }
launch4j {
mainClassName = 'jadx.gui.JadxGUI'
copyConfigurable = project.tasks.shadowJar.outputs.files
jar = "lib/${project.tasks.shadowJar.archiveName}"
// icon = "${projectDir}/icons/myApp.ico"
outfile = "jadx-gui-${version}.exe"
copyright = 'Skylot'
windowTitle = 'jadx'
jreRuntimeBits = "64"
initialHeapPercent = 5
maxHeapSize = 4096
maxHeapPercent = 70
}
test { test {
jacoco { jacoco {
enabled = false enabled = false
......
...@@ -33,6 +33,7 @@ task samplesJadxCompile(type: JavaCompile, dependsOn: samplesJadxCreate) { ...@@ -33,6 +33,7 @@ task samplesJadxCompile(type: JavaCompile, dependsOn: samplesJadxCreate) {
classpath = configurations.compile classpath = configurations.compile
destinationDir = file samplesJadxOutDir destinationDir = file samplesJadxOutDir
source = samplesJadxSrcDir source = samplesJadxSrcDir
options.encoding = "UTF-8"
} }
task samplesJadxRun(type: JavaExec, dependsOn: samplesJadxCompile) { task samplesJadxRun(type: JavaExec, dependsOn: samplesJadxCompile) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册