macOS universal binaries, install instructions for Windows and macOS

This commit is contained in:
Philipp Heckel 2022-05-10 22:10:38 -04:00
parent 5a8818ac92
commit fe96110e6b
10 changed files with 81 additions and 45 deletions

View file

@ -256,6 +256,7 @@ func loadConfig(c *cli.Context) (*client.Config, error) {
return client.NewConfig(), nil
}
//lint:ignore U1000 Conditionally used in different builds
func defaultConfigFileUnix() string {
u, _ := user.Current()
configFile := clientRootConfigFileUnixAbsolute
@ -266,6 +267,7 @@ func defaultConfigFileUnix() string {
return configFile
}
//lint:ignore U1000 Conditionally used in different builds
func defaultConfigFileWindows() string {
homeDir, _ := os.UserConfigDir()
return filepath.Join(homeDir, clientUserConfigFileWindowsRelative)

View file

@ -4,7 +4,7 @@ const (
scriptExt = "sh"
scriptHeader = "#!/bin/sh\n"
clientCommandDescriptionSuffix = `The default config file for all client commands is /etc/ntfy/client.yml (if root user),
or "~/Library/Application Support" for all other users.`
or "~/Library/Application Support/ntfy/client.yml" for all other users.`
)
var (