Skip to content

Commit

Permalink
fix: plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ngyewch committed Jul 24, 2024
1 parent c91da46 commit fa11784
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ public void apply(Project project) {
String.format(
"%s-%s-%s.exe",
project.getName(), project.getVersion(), buildParameters.getClassifier()));
final File outputAscFile =
new File(
exeOutputDirectory,
String.format(
"%s-%s-%s.exe.asc",
project.getName(), project.getVersion(), buildParameters.getClassifier()));
project
.getArtifacts()
.add(
Expand All @@ -80,16 +74,6 @@ public void apply(Project project) {
artifact.setClassifier(buildParameters.getClassifier());
artifact.setExtension("exe");
});
project
.getArtifacts()
.add(
"binaries",
outputExeFile,
artifact -> {
artifact.builtBy(taskName);
artifact.setClassifier(buildParameters.getClassifier() + ".exe");
artifact.setExtension("asc");
});

final TaskProvider<Exec> buildBinaryTaskProvider =
project
Expand All @@ -101,7 +85,6 @@ public void apply(Project project) {
task.doFirst(
t -> {
outputExeFile.getParentFile().mkdirs();
outputAscFile.getParentFile().mkdirs();
});
task.getOutputs().file(outputExeFile);
task.commandLine("go", "build", "-o", outputExeFile, "../..");
Expand Down

0 comments on commit fa11784

Please sign in to comment.