2022-01-02 18:40:27 +00:00
|
|
|
/*
|
|
|
|
* This file was generated by the Gradle "init" task.
|
|
|
|
*
|
|
|
|
* This is a general purpose Gradle build.
|
|
|
|
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/7.3/samples
|
|
|
|
* This project uses @Incubating APIs which are subject to change.
|
|
|
|
*/
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("com.ullink.msbuild") version "3.15"
|
|
|
|
}
|
|
|
|
|
2023-10-05 15:47:37 +00:00
|
|
|
version = "5371.0.1.6"
|
2022-01-02 18:40:27 +00:00
|
|
|
val friendlyName = "rjw-plasticsurgeries"
|
|
|
|
|
2022-11-19 00:33:08 +00:00
|
|
|
tasks.register<com.ullink.Msbuild>("buildC#_1.3") {
|
|
|
|
// either a solution file
|
|
|
|
// solutionFile = "${rootProject.name}.sln"
|
|
|
|
// or a project file (.csproj or .vbproj)
|
|
|
|
projectFile = file("${rootProject.name}/${rootProject.name}_1.3.csproj")
|
|
|
|
|
|
|
|
targets = listOf("Clean", "Rebuild")
|
|
|
|
configuration = "Release"
|
|
|
|
|
|
|
|
// destinationDir = "build/msbuild/bin"
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register<com.ullink.Msbuild>("buildC#_1.4") {
|
2022-01-02 18:40:27 +00:00
|
|
|
// either a solution file
|
|
|
|
// solutionFile = "${rootProject.name}.sln"
|
|
|
|
// or a project file (.csproj or .vbproj)
|
2022-11-19 02:57:12 +00:00
|
|
|
projectFile = file("${rootProject.name}/${rootProject.name}_1.4.csproj")
|
2022-01-02 18:40:27 +00:00
|
|
|
|
|
|
|
targets = listOf("Clean", "Rebuild")
|
|
|
|
configuration = "Release"
|
|
|
|
|
|
|
|
// destinationDir = "build/msbuild/bin"
|
|
|
|
}
|
|
|
|
|
2022-11-19 00:33:08 +00:00
|
|
|
tasks.register<Exec>("sign_1.3") {
|
|
|
|
dependsOn("buildC#_1.3")
|
2022-11-19 02:57:12 +00:00
|
|
|
workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.3/net48")
|
2022-11-19 12:59:47 +00:00
|
|
|
executable = "H:\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\signtool.exe"
|
2022-01-15 02:43:57 +00:00
|
|
|
args = listOf(
|
|
|
|
"sign",
|
|
|
|
"/seal",
|
|
|
|
"/t",
|
|
|
|
"http://timestamp.digicert.com",
|
|
|
|
"/a",
|
|
|
|
"/n",
|
|
|
|
"Stardust3D",
|
|
|
|
"/fd",
|
|
|
|
"certHash",
|
|
|
|
"${rootProject.name}.dll"
|
|
|
|
)
|
2022-01-02 18:40:27 +00:00
|
|
|
}
|
|
|
|
|
2022-11-19 00:33:08 +00:00
|
|
|
tasks.register<Exec>("sign_1.4") {
|
|
|
|
dependsOn("buildC#_1.4")
|
2022-11-19 02:57:12 +00:00
|
|
|
workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.4/net48")
|
2022-11-19 12:59:47 +00:00
|
|
|
executable = "H:\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\signtool.exe"
|
2022-11-19 00:33:08 +00:00
|
|
|
args = listOf(
|
|
|
|
"sign",
|
|
|
|
"/seal",
|
|
|
|
"/t",
|
|
|
|
"http://timestamp.digicert.com",
|
|
|
|
"/a",
|
|
|
|
"/n",
|
|
|
|
"Stardust3D",
|
|
|
|
"/fd",
|
|
|
|
"certHash",
|
|
|
|
"${rootProject.name}.dll"
|
|
|
|
)
|
2022-01-02 18:40:27 +00:00
|
|
|
}
|
|
|
|
|
2022-11-19 12:59:47 +00:00
|
|
|
tasks.register("copy") {
|
|
|
|
dependsOn("copy_1.3", "copy_1.4", "copy_about")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register<Copy>("copy_about") {
|
|
|
|
from(project.projectDir.resolve("${rootProject.name}/About"))
|
|
|
|
into(project.projectDir.parentFile.resolve("About"))
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register<Copy>("copy_1.3") {
|
|
|
|
dependsOn("copyDll_1.3")
|
|
|
|
from(project.projectDir.resolve("${rootProject.name}/1.3"))
|
|
|
|
into(project.projectDir.parentFile.resolve("1.3"))
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register<Copy>("copy_1.4") {
|
|
|
|
dependsOn("copyDll_1.4")
|
|
|
|
from(project.projectDir.resolve("${rootProject.name}/1.4"))
|
|
|
|
into(project.projectDir.parentFile.resolve("1.4"))
|
2022-01-02 18:40:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register<Copy>("copyDll_1.3") {
|
2022-11-19 00:33:08 +00:00
|
|
|
dependsOn("sign_1.3")
|
2022-11-19 02:57:12 +00:00
|
|
|
from(project.projectDir.resolve("${rootProject.name}/bin/Release/1.3/net48/${rootProject.name}.dll"))
|
2022-01-02 18:40:27 +00:00
|
|
|
into(project.projectDir.parentFile.resolve("1.3/Assemblies"))
|
|
|
|
}
|
|
|
|
|
2022-11-19 00:33:08 +00:00
|
|
|
tasks.register<Copy>("copyDll_1.4") {
|
|
|
|
dependsOn("sign_1.4")
|
2022-11-19 02:57:12 +00:00
|
|
|
from(project.projectDir.resolve("${rootProject.name}/bin/Release/1.4/net48/${rootProject.name}.dll"))
|
2022-11-19 00:33:08 +00:00
|
|
|
into(project.projectDir.parentFile.resolve("1.4/Assemblies"))
|
|
|
|
}
|
|
|
|
|
2022-01-02 18:40:27 +00:00
|
|
|
tasks.register<Zip>("buildZip") {
|
2022-11-19 12:59:47 +00:00
|
|
|
dependsOn("clean", ":copy")
|
2022-01-02 18:40:27 +00:00
|
|
|
into("$friendlyName/1.3") {
|
|
|
|
from(project.projectDir.parentFile.resolve("1.3"))
|
|
|
|
}
|
2022-11-19 00:33:08 +00:00
|
|
|
into("$friendlyName/1.4") {
|
|
|
|
from(project.projectDir.parentFile.resolve("1.4"))
|
|
|
|
}
|
2022-01-02 18:40:27 +00:00
|
|
|
into("$friendlyName/About") {
|
|
|
|
from(project.projectDir.parentFile.resolve("About"))
|
|
|
|
}
|
|
|
|
into("$friendlyName/Defs") {
|
|
|
|
from(project.projectDir.parentFile.resolve("Defs"))
|
|
|
|
}
|
|
|
|
into("$friendlyName/Source/${rootProject.name}") {
|
|
|
|
from(project.projectDir.parentFile.resolve("Source/${rootProject.name}"))
|
|
|
|
excludes.add("**/obj/**")
|
|
|
|
}
|
|
|
|
}
|
2022-01-15 02:43:57 +00:00
|
|
|
|
|
|
|
tasks.clean {
|
2022-11-19 02:57:12 +00:00
|
|
|
delete.add(project.projectDir.parentFile.resolve("1.3"))
|
|
|
|
delete.add(project.projectDir.parentFile.resolve("1.4"))
|
2022-11-19 12:59:47 +00:00
|
|
|
delete.add(project.projectDir.parentFile.resolve("About"))
|
2022-01-15 02:43:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.build {
|
|
|
|
//dependsOn("buildC#")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.assemble {
|
|
|
|
dependsOn("buildZip")
|
|
|
|
}
|