mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Update native-utils to 2023.0.1 (#4272)
Also remove x86 build bits.
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user