Skip to content

Commit

Permalink
fix platform build error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chrnorm committed Oct 1, 2024
1 parent ae6fb6b commit 096eb39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/chromemsg/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ import (
"github.com/common-fate/clio"
)

type HostManifest struct {
Name string `json:"name"`
Description string `json:"description"`
Path string `json:"path"`
Type string `json:"type"`
AllowedOrigins []string `json:"allowed_origins"`
}

// Configure writes native messaging host configuration to various well-known folders,
// including Google Chrome, Arc, Microsoft Edge, and Vivaldi.
//
Expand Down
8 changes: 8 additions & 0 deletions pkg/chromemsg/write_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ import (
"github.com/common-fate/granted/internal/build"
)

type HostManifest struct {
Name string `json:"name"`
Description string `json:"description"`
Path string `json:"path"`
Type string `json:"type"`
AllowedOrigins []string `json:"allowed_origins"`
}

func writeManifest(manifestPath string) error {
executablePath, err := os.Executable()
if err != nil {
Expand Down

0 comments on commit 096eb39

Please sign in to comment.