2020-07-14 11:55:08 +00:00
|
|
|
// +build ignore
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2021-03-01 16:43:28 +00:00
|
|
|
"github.com/distribyted/distribyted"
|
2021-03-10 09:54:56 +00:00
|
|
|
"github.com/rs/zerolog/log"
|
2020-07-14 11:55:08 +00:00
|
|
|
"github.com/shurcooL/vfsgen"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
err := vfsgen.Generate(distribyted.HttpFS, vfsgen.Options{
|
|
|
|
BuildTags: "release",
|
|
|
|
VariableName: "HttpFS",
|
|
|
|
PackageName: "distribyted",
|
|
|
|
})
|
|
|
|
if err != nil {
|
2021-03-10 09:54:56 +00:00
|
|
|
log.Fatal().Err(err).Msg("problem generating static files")
|
2020-07-14 11:55:08 +00:00
|
|
|
}
|
|
|
|
}
|