mirror of
https://github.com/safing/portmaster
synced 2025-04-22 11:59:09 +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
|
# ./dist/all/assets.zip
|
||||||
BUILD +assets
|
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:
|
go-ci:
|
||||||
BUILD +go-build --GOOS="linux" --GOARCH="amd64"
|
BUILD +go-build --GOOS="linux" --GOARCH="amd64"
|
||||||
BUILD +go-build --GOOS="linux" --GOARCH="arm64"
|
BUILD +go-build --GOOS="linux" --GOARCH="arm64"
|
||||||
|
|
|
@ -74,6 +74,7 @@ func Set(setName string, setVersion string, setLicenseName string) {
|
||||||
|
|
||||||
if setVersion != "" {
|
if setVersion != "" {
|
||||||
version = setVersion
|
version = setVersion
|
||||||
|
versionNumber = setVersion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
// Set name and license.
|
// Set name and license.
|
||||||
info.Set("SPN Hub", "", "GPLv3")
|
info.Set("SPN Hub", "0.7.8", "GPLv3")
|
||||||
|
|
||||||
// Configure metrics.
|
// Configure metrics.
|
||||||
_ = metrics.SetNamespace("hub")
|
_ = metrics.SetNamespace("hub")
|
||||||
|
@ -45,10 +45,6 @@ func main() {
|
||||||
// Set SPN public hub mode.
|
// Set SPN public hub mode.
|
||||||
conf.EnablePublicHub(true)
|
conf.EnablePublicHub(true)
|
||||||
|
|
||||||
// Set default log level.
|
|
||||||
log.SetLogLevel(log.WarningLevel)
|
|
||||||
_ = log.Start()
|
|
||||||
|
|
||||||
// Create instance.
|
// Create instance.
|
||||||
var execCmdLine bool
|
var execCmdLine bool
|
||||||
instance, err := spn.New()
|
instance, err := spn.New()
|
||||||
|
@ -79,6 +75,10 @@ func main() {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set default log level.
|
||||||
|
log.SetLogLevel(log.WarningLevel)
|
||||||
|
_ = log.Start()
|
||||||
|
|
||||||
// Start
|
// Start
|
||||||
go func() {
|
go func() {
|
||||||
err = instance.Start()
|
err = instance.Start()
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||||
|
|
||||||
rm -rf data/me/*
|
rm -rf testdata/me/*
|
||||||
rm -rf data/shared/*
|
rm -rf testdata/shared/*
|
||||||
rm -rf data/hub*/databases
|
rm -rf testdata/hub*/databases
|
||||||
|
|
Loading…
Add table
Reference in a new issue