mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
Renaming to be ND_PACKAGE_TYPE so we can reuse this for the
.deb/.rpm stats as well
This commit is contained in:
parent
9aa81eb4e0
commit
93e3590465
@ -6,6 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"math"
|
"math"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
@ -153,6 +154,9 @@ var staticData = sync.OnceValue(func() insights.Data {
|
|||||||
data.Build.Settings, data.Build.GoVersion = buildInfo()
|
data.Build.Settings, data.Build.GoVersion = buildInfo()
|
||||||
data.OS.Containerized = consts.InContainer
|
data.OS.Containerized = consts.InContainer
|
||||||
|
|
||||||
|
// Install info
|
||||||
|
data.OS.Packaged = os.Getenv("ND_PACKAGE_TYPE")
|
||||||
|
|
||||||
// OS info
|
// OS info
|
||||||
data.OS.Type = runtime.GOOS
|
data.OS.Type = runtime.GOOS
|
||||||
data.OS.Arch = runtime.GOARCH
|
data.OS.Arch = runtime.GOARCH
|
||||||
|
|||||||
@ -16,6 +16,7 @@ type Data struct {
|
|||||||
Containerized bool `json:"containerized"`
|
Containerized bool `json:"containerized"`
|
||||||
Arch string `json:"arch"`
|
Arch string `json:"arch"`
|
||||||
NumCPU int `json:"numCPU"`
|
NumCPU int `json:"numCPU"`
|
||||||
|
Packaged string `json:"packaged,omitempty"`
|
||||||
} `json:"os"`
|
} `json:"os"`
|
||||||
Mem struct {
|
Mem struct {
|
||||||
Alloc uint64 `json:"alloc"`
|
Alloc uint64 `json:"alloc"`
|
||||||
|
|||||||
@ -61,7 +61,7 @@
|
|||||||
Arguments='service execute --configfile "[INSTALLDIR]navidrome.ini" --logfile "[ND_DATAFOLDER]\navidrome.log"'
|
Arguments='service execute --configfile "[INSTALLDIR]navidrome.ini" --logfile "[ND_DATAFOLDER]\navidrome.log"'
|
||||||
/>
|
/>
|
||||||
<ServiceControl Id='StartNavidromeService' Start='install' Stop='both' Remove='uninstall' Name='$(var.ProductName)' Wait='yes' />
|
<ServiceControl Id='StartNavidromeService' Start='install' Stop='both' Remove='uninstall' Name='$(var.ProductName)' Wait='yes' />
|
||||||
<Environment Action='create' Name='ND_MSI_INSTALL' Value='1' />
|
<Environment Action='create' Name='ND_PACKAGE_TYPE' Value='MSI' />
|
||||||
</Component>
|
</Component>
|
||||||
|
|
||||||
<Component Id='FFMpegExecutable' Guid='d17358f7-abdc-4080-acd3-6427903a7dd8' Win64="$(var.Win64)">
|
<Component Id='FFMpegExecutable' Guid='d17358f7-abdc-4080-acd3-6427903a7dd8' Win64="$(var.Win64)">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user