mirror of
https://github.com/safing/portmaster
synced 2025-04-09 13:39:10 +00:00
Fix SPN build
This commit is contained in:
parent
ef7b129ced
commit
96209c28cf
4 changed files with 14 additions and 8 deletions
|
@ -70,6 +70,11 @@ build:
|
|||
# ./dist/all/assets.zip
|
||||
BUILD +assets
|
||||
|
||||
build-spn:
|
||||
BUILD +go-build --CMDS="hub" --GOOS="linux" --GOARCH="amd64"
|
||||
BUILD +go-build --CMDS="hub" --GOOS="linux" --GOARCH="arm64"
|
||||
# TODO: Add other platforms
|
||||
|
||||
go-ci:
|
||||
BUILD +go-build --GOOS="linux" --GOARCH="amd64"
|
||||
BUILD +go-build --GOOS="linux" --GOARCH="arm64"
|
||||
|
|
|
@ -74,6 +74,7 @@ func Set(setName string, setVersion string, setLicenseName string) {
|
|||
|
||||
if setVersion != "" {
|
||||
version = setVersion
|
||||
versionNumber = setVersion
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ func main() {
|
|||
flag.Parse()
|
||||
|
||||
// Set name and license.
|
||||
info.Set("SPN Hub", "", "GPLv3")
|
||||
info.Set("SPN Hub", "0.7.8", "GPLv3")
|
||||
|
||||
// Configure metrics.
|
||||
_ = metrics.SetNamespace("hub")
|
||||
|
@ -45,10 +45,6 @@ func main() {
|
|||
// Set SPN public hub mode.
|
||||
conf.EnablePublicHub(true)
|
||||
|
||||
// Set default log level.
|
||||
log.SetLogLevel(log.WarningLevel)
|
||||
_ = log.Start()
|
||||
|
||||
// Create instance.
|
||||
var execCmdLine bool
|
||||
instance, err := spn.New()
|
||||
|
@ -79,6 +75,10 @@ func main() {
|
|||
os.Exit(0)
|
||||
}
|
||||
|
||||
// Set default log level.
|
||||
log.SetLogLevel(log.WarningLevel)
|
||||
_ = log.Start()
|
||||
|
||||
// Start
|
||||
go func() {
|
||||
err = instance.Start()
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||
|
||||
rm -rf data/me/*
|
||||
rm -rf data/shared/*
|
||||
rm -rf data/hub*/databases
|
||||
rm -rf testdata/me/*
|
||||
rm -rf testdata/shared/*
|
||||
rm -rf testdata/hub*/databases
|
||||
|
|
Loading…
Add table
Reference in a new issue