提交 4bda3b9e 编写于 作者: S Skylot

build: exclude exe build on not Windows (#1180)

上级 21da3c86
......@@ -30,7 +30,7 @@ jobs:
env:
TERM: dumb
with:
arguments: build dist --warning-mode=all
arguments: build dist copyExe --warning-mode=all
- name: Save bundle artifact
if: success() && github.event_name == 'push'
......
......@@ -11,7 +11,7 @@ stages:
java-8:
stage: test
image: openjdk:8
script: ./gradlew clean build dist --warning-mode=all
script: ./gradlew clean build dist copyExe --warning-mode=all
java-11:
stage: test
......
......@@ -142,7 +142,11 @@ task dist {
description = 'Build jadx distribution zip'
dependsOn(pack)
dependsOn('copyExe')
OperatingSystem os = org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.currentOperatingSystem;
if (os.isWindows()) {
dependsOn('copyExe')
}
}
task samples(dependsOn: 'jadx-samples:samples') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册