Support Windows Builds (#54)

This adds support for windows builds. With it, the app can successfully
run on windows and unix systems. Note that the terminal still only works
on unix systems at this time.
This commit is contained in:
Sylvie Crowe
2024-06-15 14:59:14 -07:00
committed by GitHub
parent 014c6fb2ec
commit d0c4f5c46f
8 changed files with 58 additions and 32 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
"context"
"fmt"
"log"
"path"
"path/filepath"
"time"
"github.com/jmoiron/sqlx"
@@ -42,7 +42,7 @@ func InitWStore() error {
func GetDBName() string {
waveHome := wavebase.GetWaveHomeDir()
return path.Join(waveHome, WStoreDBName)
return filepath.Join(waveHome, WStoreDBName)
}
func MakeDB(ctx context.Context) (*sqlx.DB, error) {