[build] Update native-utils to 2023.0.1 (#4272)

Also remove x86 build bits.
This commit is contained in:
Peter Johnson
2022-05-28 11:12:59 -07:00
committed by GitHub
parent abc605c9c9
commit 7ad2be172e
12 changed files with 1 additions and 154 deletions

View File

@@ -36,14 +36,6 @@ if (OperatingSystem.current().isWindows()) {
if (runtimeVerNumber != null) {
runtimeLocation = file("$runtimeLocation\\$runtimeVerNumber")
def x86Folder = null
file("$runtimeLocation\\x86").eachFile {
if (it.name.endsWith('.CRT')) {
x86Folder = it
}
}
def x64Folder = null
file("$runtimeLocation\\x64").eachFile {
@@ -52,14 +44,6 @@ if (OperatingSystem.current().isWindows()) {
}
}
def x86ZipTask = tasks.create('x86RuntimeZip', Zip) {
destinationDirectory = outputsFolder
archiveBaseName = zipBaseName
classifier = 'x86'
from x86Folder
}
def x64ZipTask = tasks.create('x64RuntimeZip', Zip) {
destinationDirectory = outputsFolder
archiveBaseName = zipBaseName
@@ -68,17 +52,14 @@ if (OperatingSystem.current().isWindows()) {
from x64Folder
}
addTaskToCopyAllOutputs(x86ZipTask)
addTaskToCopyAllOutputs(x64ZipTask)
build.dependsOn x86ZipTask
build.dependsOn x64ZipTask
publishing {
publications {
runtime(MavenPublication) {
artifact x86ZipTask
artifact x64ZipTask
artifactId = "${baseArtifactId}"