Skip to content

Commit 17bdc15

Browse files
committed
ci(yeet): add .exe for windows executables
Signed-off-by: Xe Iaso <me@xeiaso.net>
1 parent 960b577 commit 17bdc15

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

yeetfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ $`npm run assets`;
1010
return;
1111
}
1212

13+
const extension = platform == "windows" ? ".exe" : "";
14+
1315
[deb, rpm, tarball].forEach((method) =>
1416
method.build({
1517
name: "anubis",
@@ -27,8 +29,8 @@ $`npm run assets`;
2729
},
2830

2931
build: ({ bin, etc, systemd, doc }) => {
30-
$`go build -o ${bin}/anubis -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/anubis`;
31-
$`go build -o ${bin}/anubis-robots2policy -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/robots2policy`;
32+
$`go build -o ${bin}/anubis${extension} -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/anubis`;
33+
$`go build -o ${bin}/anubis-robots2policy${extension} -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/robots2policy`;
3234

3335
file.install("./run/anubis@.service", `${systemd}/anubis@.service`);
3436
file.install("./run/default.env", `${etc}/default.env`);

0 commit comments

Comments
 (0)