|
10 | 10 | using Nuke.Common.Tools.DotNet;
|
11 | 11 | using Nuke.Common.Tools.SignClient;
|
12 | 12 | using static Nuke.Common.Tools.DotNet.DotNetTasks;
|
13 |
| -using static Nuke.Common.Tools.SignClient.SignClientTasks; |
| 13 | +using static Nuke.Common.Tooling.ProcessTasks; |
14 | 14 |
|
15 | 15 | partial class Build
|
16 | 16 | {
|
@@ -51,19 +51,47 @@ partial class Build
|
51 | 51 | (
|
52 | 52 | outputs, (current, pkg) => current.Concat
|
53 | 53 | (
|
54 |
| - SignClientSign |
| 54 | + // TODO this doesn't work for some reason |
| 55 | + // > C:\Users\perks\Documents\_Silk.NET\Silk.NET\build\codesigning\tool\SignClient.exe sign \ |
| 56 | + // --config C:\Users\perks\Documents\_Silk.NET\Silk.NET\build\codesigning\config.json \ |
| 57 | + // --input C:\Users\perks\Documents\_Silk.NET\Silk.NET\build\output_packages\Silk.NET.2.11.0.nupkg \ |
| 58 | + // --baseDirectory C:\Users\perks\Documents\_Silk.NET\Silk.NET\build\output_packages \ |
| 59 | + // --fileList C:\Users\perks\Documents\_Silk.NET\Silk.NET\build\codesigning\filelist.txt \ |
| 60 | + // --secret [hidden] \ |
| 61 | + // --user *** \ |
| 62 | + // --name Silk.NET \ |
| 63 | + // --description Silk.NET \ |
| 64 | + // --descriptionUrl https://github.com/dotnet/Silk.NET |
| 65 | + // @ C:\Users\perks\Documents\_Silk.NET\Silk.NET |
| 66 | + // Error output: |
| 67 | + // --name parameter is required |
| 68 | + // SignClientSign |
| 69 | + // ( |
| 70 | + // s => s.SetProcessToolPath(execPath) |
| 71 | + // .SetBaseDirectory(PackageDirectory) |
| 72 | + // .SetInput(pkg) |
| 73 | + // .SetConfig(basePath / "config.json") |
| 74 | + // .SetFileList(basePath / "filelist.txt") |
| 75 | + // .SetUsername(SignUsername) |
| 76 | + // .SetSecret(SignPassword) |
| 77 | + // .SetName("Silk.NET") |
| 78 | + // .SetDescription("Silk.NET") |
| 79 | + // .SetDescriptionUrl("https://github.com/dotnet/Silk.NET") |
| 80 | + // ) |
| 81 | + StartProcess |
55 | 82 | (
|
56 |
| - s => s.SetProcessToolPath(execPath) |
57 |
| - .SetBaseDirectory(PackageDirectory) |
58 |
| - .SetInput(pkg) |
59 |
| - .SetConfig(basePath / "config.json") |
60 |
| - .SetFileList(basePath / "filelist.txt") |
61 |
| - .SetUsername(SignUsername) |
62 |
| - .SetSecret(SignPassword) |
63 |
| - .SetName("Silk.NET") |
64 |
| - .SetDescription("Silk.NET") |
65 |
| - .SetDescriptionUrl("https://github.com/dotnet/Silk.NET") |
66 |
| - ) |
| 83 | + execPath, |
| 84 | + "sign " + |
| 85 | + $"--baseDirectory {PackageDirectory} " + |
| 86 | + $"--input \"{pkg}\" " + |
| 87 | + $"--config \"{basePath / "config.json"}\" " + |
| 88 | + $"--filelist \"{basePath / "filelist.txt"}\" " + |
| 89 | + $"--user \"{SignUsername}\" " + |
| 90 | + $"--secret \"{SignPassword}\" " + |
| 91 | + "--name \"Silk.NET\" " + |
| 92 | + "--description \"Silk.NET\" " + |
| 93 | + "--descriptionUrl \"https://github.com/dotnet/Silk.NET\"" |
| 94 | + ).AssertZeroExitCode().Output |
67 | 95 | )
|
68 | 96 | );
|
69 | 97 | }
|
|
0 commit comments