File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ $`npm run assets`;
1010 return ;
1111 }
1212
13+ const extension = platform == "windows" ? ".exe" : "" ;
14+
1315 [ deb , rpm , tarball ] . forEach ( ( method ) =>
1416 method . build ( {
1517 name : "anubis" ,
@@ -27,8 +29,8 @@ $`npm run assets`;
2729 } ,
2830
2931 build : ( { bin, etc, systemd, doc } ) => {
30- $ `go build -o ${ bin } /anubis -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${ git . tag ( ) } "' ./cmd/anubis` ;
31- $ `go build -o ${ bin } /anubis-robots2policy -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${ git . tag ( ) } "' ./cmd/robots2policy` ;
32+ $ `go build -o ${ bin } /anubis${ extension } -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${ git . tag ( ) } "' ./cmd/anubis` ;
33+ $ `go build -o ${ bin } /anubis-robots2policy${ extension } -ldflags '-s -w -extldflags "-static" -X "github.com/TecharoHQ/anubis.Version=${ git . tag ( ) } "' ./cmd/robots2policy` ;
3234
3335 file . install ( "./run/anubis@.service" , `${ systemd } /anubis@.service` ) ;
3436 file . install ( "./run/default.env" , `${ etc } /default.env` ) ;
You can’t perform that action at this time.
0 commit comments