Implement new Go based Desktop app

This focuses on Windows first, but coudl be used for Mac
and possibly linux in the future.
This commit is contained in:
Daniel Hiltgen 2023-12-26 16:03:45 -08:00 committed by jmorganca
parent f397e0e988
commit 29e90cc13b
49 changed files with 2621 additions and 101 deletions

17
app/main.go Normal file
View file

@ -0,0 +1,17 @@
package main
// Compile with the following to get rid of the cmd pop up on windows
// go build -ldflags="-H windowsgui" .
import (
"os"
"github.com/jmorganca/ollama/app/lifecycle"
)
func main() {
// TODO - remove as we end the early access phase
os.Setenv("OLLAMA_DEBUG", "1") // nolint:errcheck
lifecycle.Run()
}