We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c6631e commit dbbd1caCopy full SHA for dbbd1ca
sqinn.go
@@ -86,6 +86,10 @@ func Launch(opt Options) (*Sqinn, error) {
86
"linux/amd64": prebuiltLinux,
87
"windows/amd64": prebuiltWindows,
88
}
89
+ filenameMap := map[string]string{
90
+ "linux": "sqinn2",
91
+ "windows": "sqinn2.exe",
92
+ }
93
platform := runtime.GOOS + "/" + runtime.GOARCH
94
prebuilt, prebuiltFound := prebuiltMap[platform]
95
if !prebuiltFound {
@@ -95,7 +99,7 @@ func Launch(opt Options) (*Sqinn, error) {
99
if err != nil {
96
100
return nil, err
97
101
98
- tempname = filepath.Join(tempdir, "sqinn2")
102
+ tempname = filepath.Join(tempdir, filenameMap[runtime.GOOS])
103
if err := os.WriteFile(tempname, prebuilt, 0755); err != nil {
104
105
0 commit comments