mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-01 20:41:28 +02:00
Merge main into embedded-vnc
# Conflicts: # client/configs/configs.go
This commit is contained in:
@@ -29,8 +29,13 @@ cask "{{ $projectName }}" do
|
||||
end
|
||||
|
||||
uninstall_preflight do
|
||||
system_command "#{appdir}/Netbird UI.app/uninstaller.sh",
|
||||
sudo: false
|
||||
system_command "/bin/sh",
|
||||
args: ["-c", <<~CMD],
|
||||
launchctl bootout system/netbird 2>/dev/null || \
|
||||
launchctl unload /Library/LaunchDaemons/netbird.plist 2>/dev/null || true
|
||||
rm -f /Library/LaunchDaemons/netbird.plist
|
||||
CMD
|
||||
sudo: true
|
||||
end
|
||||
|
||||
name "Netbird UI"
|
||||
|
||||
@@ -8,21 +8,19 @@ import (
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/netbirdio/netbird/client/configs"
|
||||
"github.com/netbirdio/netbird/client/ui/guilog"
|
||||
)
|
||||
|
||||
// uiLogFileName must stay in sync with the daemon's "gui-client*.log.*" glob
|
||||
// for rotated siblings (addUILog in client/internal/debug).
|
||||
const uiLogFileName = "gui-client.log"
|
||||
|
||||
// uiLogPath returns the GUI log path with native separators, since the daemon
|
||||
// opens it directly for debug-bundle collection.
|
||||
// opens it directly for debug-bundle collection. The file name comes from
|
||||
// configs.UILogFile so the daemon validates and collects the same name.
|
||||
func uiLogPath() (string, error) {
|
||||
dir, err := os.UserConfigDir()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return filepath.Join(dir, "netbird", uiLogFileName), nil
|
||||
return filepath.Join(dir, "netbird", configs.UILogFile), nil
|
||||
}
|
||||
|
||||
// newDebugLog builds the GUI debug log, disabled when userSetLogFile is set
|
||||
|
||||
Reference in New Issue
Block a user