mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-08-03 17:59:24 -04:00
28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
["amd64", "arm64", "riscv64"].forEach(goarch => {
|
|
[deb, rpm].forEach(method => method.build({
|
|
name: "anubis",
|
|
description: "Anubis weighs the souls of incoming HTTP requests and uses a sha256 proof-of-work challenge in order to protect upstream resources from scraper bots.",
|
|
homepage: "https://anubis.techaro.lol",
|
|
license: "MIT",
|
|
goarch,
|
|
|
|
documentation: {
|
|
"./README.md": "README.md",
|
|
"./LICENSE": "LICENSE",
|
|
"./docs/docs/CHANGELOG.md": "CHANGELOG.md",
|
|
},
|
|
|
|
build: (out) => {
|
|
// install Anubis binary
|
|
go.build("-o", `${out}/usr/bin/anubis`, "./cmd/anubis");
|
|
|
|
// install systemd unit
|
|
yeet.run("mkdir", "-p", `${out}/usr/lib/systemd/system`);
|
|
yeet.run("cp", "run/anubis@.service", `${out}/usr/lib/systemd/system/anubis@.service`);
|
|
|
|
// install default config
|
|
yeet.run("mkdir", "-p", `${out}/etc/anubis`);
|
|
yeet.run("cp", "run/anubis.env.default", `${out}/etc/anubis/anubis-default.env`);
|
|
},
|
|
}));
|
|
}); |