mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-27 02:22:42 +00:00
ci(yeet): add .exe for windows executables
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
+4
-2
@@ -10,6 +10,8 @@ $`npm run assets`;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const extension = platform == "windows" ? ".exe" : "";
|
||||||
|
|
||||||
[deb, rpm, tarball].forEach((method) =>
|
[deb, rpm, tarball].forEach((method) =>
|
||||||
method.build({
|
method.build({
|
||||||
name: "anubis",
|
name: "anubis",
|
||||||
@@ -27,8 +29,8 @@ $`npm run assets`;
|
|||||||
},
|
},
|
||||||
|
|
||||||
build: ({ bin, etc, systemd, doc }) => {
|
build: ({ bin, etc, systemd, doc }) => {
|
||||||
$`go build -o ${bin}/anubis -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/anubis`;
|
$`go build -o ${bin}/anubis${extension} -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/anubis`;
|
||||||
$`go build -o ${bin}/anubis-robots2policy -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/robots2policy`;
|
$`go build -o ${bin}/anubis-robots2policy${extension} -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${git.tag()}"' ./cmd/robots2policy`;
|
||||||
|
|
||||||
file.install("./run/anubis@.service", `${systemd}/anubis@.service`);
|
file.install("./run/anubis@.service", `${systemd}/anubis@.service`);
|
||||||
file.install("./run/default.env", `${etc}/default.env`);
|
file.install("./run/default.env", `${etc}/default.env`);
|
||||||
|
|||||||
Reference in New Issue
Block a user