mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Preserve file permisions and timestamps in archives (#8532)
Fixes tools not being executable.
This commit is contained in:
@@ -167,6 +167,13 @@ subprojects {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(AbstractArchiveTask).configureEach {
|
||||
// Use file timestamps from the file system
|
||||
preserveFileTimestamps = true
|
||||
// Use permissions from the file system
|
||||
useFileSystemPermissions()
|
||||
}
|
||||
}
|
||||
|
||||
ext.getCurrentArch = {
|
||||
|
||||
Reference in New Issue
Block a user