diff --git a/burgernotes-app b/burgernotes-app index 591c5b1..93ddc15 100755 Binary files a/burgernotes-app and b/burgernotes-app differ diff --git a/main.go b/main.go index 50ac758..5b807ee 100644 --- a/main.go +++ b/main.go @@ -3,11 +3,16 @@ package main import ( "github.com/arzumify/webview_go-4.1" "net/http" + "os" + "path/filepath" ) func main() { go func() { - http.Handle("/", http.StripPrefix("/", http.FileServer(http.Dir("./website")))) + exepath, _ := os.Executable() + path, _ := filepath.EvalSymlinks(exepath) + + http.Handle("/", http.StripPrefix("/", http.FileServer(http.Dir(filepath.Dir(path) + "/website")))) http.ListenAndServe("localhost:52064", nil) }()