aboutsummaryrefslogtreecommitdiff
path: root/cmd/quickserv/yeetfile.js
blob: a843668aaa6c325e4fe43d006b9e55c63921679f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
["amd64", "arm64"].forEach((goarch) => {
  [deb, rpm, tarball].forEach((method) =>
    method.build({
      name: "quickserv",
      description: "Like python3 -m http.server but a single binary",
      homepage: "https://within.website",
      license: "CC0",
      goarch,

      documentation: {
        "../../LICENSE": "LICENSE",
      },

      build: ({ bin }) => {
        $`go build -o ${bin}/quickserv -ldflags '-s -w -extldflags "-static" -X "within.website/x.Version=${git.tag()}"'`;
      },
    }),
  );
});