mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
14 lines
543 B
Plaintext
14 lines
543 B
Plaintext
target(default:"package the product") {
|
|
File buildDir = new File("${buildDirectory}");
|
|
File sandboxDir = new File(buildDir, "sandbox");
|
|
|
|
// do not change this line of code
|
|
chmod(dir: sandboxDir, perm: "755", includes: "${executables}")
|
|
|
|
File destFile = new File(buildDir, "${packageName}.zip");
|
|
zip(destfile: destFile) {
|
|
zipfileset(dir: sandboxDir, prefix: "${packageName}", excludes: "${executables}, bin/system.classpath")
|
|
zipfileset(dir: sandboxDir, prefix: "${packageName}", includes: "${executables}", filemode: "755")
|
|
}
|
|
}
|