aboutsummaryrefslogtreecommitdiff
path: root/cmd/quickserv/yeetfile.js
blob: 2df904841e8a7de46857c19b6a85b421c019962d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
["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()}"'`
        },
    }))
})