mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
30 lines
447 B
Go
30 lines
447 B
Go
// +build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
"os"
|
|
"path/filepath"
|
|
|
|
"github.com/shurcooL/vfsgen"
|
|
)
|
|
|
|
func main() {
|
|
var cwd, _ = os.Getwd()
|
|
|
|
webUIAssets := http.Dir(filepath.Join(cwd, "webui/build"))
|
|
|
|
err := vfsgen.Generate(webUIAssets, vfsgen.Options{
|
|
Filename: "webui/packed_assets.go",
|
|
PackageName: "webui",
|
|
BuildTags: "deploy_build",
|
|
VariableName: "WebUIAssets",
|
|
})
|
|
|
|
if err != nil {
|
|
log.Fatalln(err)
|
|
}
|
|
}
|