aboutsummaryrefslogtreecommitdiff
path: root/yeetfile.js
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-03-28 14:45:22 -0400
committerGitHub <noreply@github.com>2025-03-28 14:45:22 -0400
commitdfd4d42d17400e0291bcbf2a6373a32b35462350 (patch)
tree7ff7052a1d3721970abb655dcec191a510b28b5b /yeetfile.js
parent236e32ee9557cda24e8a20b5da0a904c8cd2ebd1 (diff)
parentbb4f49cfd94783111e2fbed99b4ea7a2077fa0bf (diff)
downloadanubis-Xe/deblob.tar.xz
anubis-Xe/deblob.zip
Merge branch 'main' into Xe/deblobXe/deblob
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'yeetfile.js')
-rw-r--r--yeetfile.js36
1 files changed, 19 insertions, 17 deletions
diff --git a/yeetfile.js b/yeetfile.js
index b86c4f8..829754c 100644
--- a/yeetfile.js
+++ b/yeetfile.js
@@ -1,22 +1,24 @@
go.install();
-["amd64", "arm64"].forEach(goarch => rpm.build({
- name: "anubis",
- description: "Anubis weighs the souls of incoming HTTP requests and uses a proof-of-work challenge in order to protect upstream resources from scraper bots.",
- homepage: "https://anubis.techaro.lol",
- license: "MIT",
- goarch,
+["amd64", "arm64"].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,
- build: (out) => {
- // install Anubis binary
- go.build("-o", `${out}/usr/bin/anubis`);
+ 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 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`);
- },
-})); \ No newline at end of file
+ // install default config
+ yeet.run("mkdir", "-p", `${out}/etc/anubis`);
+ yeet.run("cp", "run/anubis.env.default", `${out}/etc/anubis/anubis-default.env`);
+ },
+ }));
+}); \ No newline at end of file