Skip to content

Commit

Permalink
Merge pull request #147 from onflowser/go-install-path
Browse files Browse the repository at this point in the history
Change app name on windows
  • Loading branch information
sideninja authored Nov 23, 2022
2 parents a8efa88 + 5d6ef05 commit 3d126b9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkg/flowser/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,16 @@ func (a *App) unzip(source string, target string) error {

// appDir returns the location of the executable application inside the installation dir.
func (a *App) appDir(installDir string) (string, error) {
return path.Join(installDir, "Flowser.app"), nil
files := map[string]string{
darwin: "Flowser.app",
windows: "@flowserapp",
}
executable, ok := files[runtime.GOOS]
if !ok {
return "", errorPlatformNotSupported
}

return path.Join(installDir, executable), nil
}

// executable returns the location of application executable.
Expand Down

0 comments on commit 3d126b9

Please sign in to comment.