mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-12 16:26:37 +00:00
Move auto generated source to a package
This commit is contained in:
parent
81d5d1d4a6
commit
b1ba976122
6
auto/gui.files.go
Normal file
6
auto/gui.files.go
Normal file
File diff suppressed because one or more lines are too long
2
build.sh
2
build.sh
@ -11,7 +11,7 @@ fi
|
|||||||
if [[ -z $1 ]] ; then
|
if [[ -z $1 ]] ; then
|
||||||
go build -ldflags "-X main.Version $version"
|
go build -ldflags "-X main.Version $version"
|
||||||
elif [[ $1 == "embed" ]] ; then
|
elif [[ $1 == "embed" ]] ; then
|
||||||
embedder main gui > gui.files.go \
|
embedder auto gui > auto/gui.files.go \
|
||||||
&& go build -ldflags "-X main.Version $version"
|
&& go build -ldflags "-X main.Version $version"
|
||||||
elif [[ $1 == "tar" ]] ; then
|
elif [[ $1 == "tar" ]] ; then
|
||||||
go build -ldflags "-X main.Version $version" \
|
go build -ldflags "-X main.Version $version" \
|
||||||
|
File diff suppressed because one or more lines are too long
3
gui.go
3
gui.go
@ -11,6 +11,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/calmh/syncthing/auto"
|
||||||
"github.com/calmh/syncthing/model"
|
"github.com/calmh/syncthing/model"
|
||||||
"github.com/codegangsta/martini"
|
"github.com/codegangsta/martini"
|
||||||
"github.com/cratonica/embed"
|
"github.com/cratonica/embed"
|
||||||
@ -26,7 +27,7 @@ func startGUI(addr string, m *model.Model) {
|
|||||||
router.Get("/rest/need", restGetNeed)
|
router.Get("/rest/need", restGetNeed)
|
||||||
router.Get("/rest/system", restGetSystem)
|
router.Get("/rest/system", restGetSystem)
|
||||||
|
|
||||||
fs, err := embed.Unpack(Resources)
|
fs, err := embed.Unpack(auto.Resources)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user