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

build jadx-gui.exe

上级 37ed9cd2
......@@ -13,7 +13,7 @@ stages:
build:
stage: build
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
- ./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
......@@ -21,3 +21,4 @@ build:
artifacts:
paths:
- build/jadx*.zip
- build/jadx*.exe
......@@ -3,7 +3,7 @@ jdk:
- oraclejdk8
env:
- TERM=dumb
- TERM=dumb GRADLE_OPTS="-Dorg.gradle.daemon=false"
before_install:
- chmod +x gradlew
......
......@@ -22,7 +22,7 @@
},
"files": [
{
"includePattern": "build/(jadx.*\.zip)",
"includePattern": "build/(jadx.*\.(zip|exe))",
"uploadPattern": "$1",
"matrixParams": {
"override": 1
......
......@@ -96,17 +96,29 @@ task pack(type: Zip, dependsOn: copyArtifacts) {
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'
}
task samples(dependsOn: 'jadx-samples:samples') {
group 'jadx'
}
task testAppCheck(dependsOn: 'jadx-test-app:testAppCheck') {
group 'jadx'
}
task cleanBuildDir(type: Delete) {
group 'jadx'
delete buildDir
}
......
plugins {
id 'edu.sc.seis.launch4j' version '2.4.3'
id 'com.github.johnrengelman.shadow' version '2.0.2'
}
apply plugin: 'application'
mainClassName = 'jadx.gui.JadxGUI'
......@@ -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 {
jacoco {
enabled = false
......
......@@ -33,6 +33,7 @@ task samplesJadxCompile(type: JavaCompile, dependsOn: samplesJadxCreate) {
classpath = configurations.compile
destinationDir = file samplesJadxOutDir
source = samplesJadxSrcDir
options.encoding = "UTF-8"
}
task samplesJadxRun(type: JavaExec, dependsOn: samplesJadxCompile) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册