App product name
This commit is contained in:
parent
e3eee6e320
commit
87f05911ae
2 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/webview/webview"
|
||||
)
|
||||
|
||||
func runOctoTasks(ctx context.Context) {
|
||||
func runServer(ctx context.Context) {
|
||||
cmd := exec.CommandContext(ctx, "./octoserver", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10), "--single-user")
|
||||
cmd.Stdout = os.Stdout
|
||||
err := cmd.Run()
|
||||
|
@ -25,9 +25,9 @@ func main() {
|
|||
w := webview.New(debug)
|
||||
defer w.Destroy()
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
go runOctoTasks(ctx)
|
||||
go runServer(ctx)
|
||||
|
||||
w.SetTitle("Octo Tasks")
|
||||
w.SetTitle("Focalboard")
|
||||
w.SetSize(1024, 768, webview.HintNone)
|
||||
w.Navigate("http://localhost:8088")
|
||||
w.Run()
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/zserge/lorca"
|
||||
)
|
||||
|
||||
func runOctoTasks(ctx context.Context) *exec.Cmd {
|
||||
func runServer(ctx context.Context) *exec.Cmd {
|
||||
// cmd := exec.CommandContext(ctx, "octoserver.exe", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10), "--single-user")
|
||||
cmd := exec.CommandContext(ctx, "octoserver.exe", "--single-user")
|
||||
// cmd := exec.CommandContext(ctx, "cmd.exe", "/C", "start", "./bin/octoserver.exe", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
|
||||
|
@ -47,7 +47,7 @@ func main() {
|
|||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
cmd := runOctoTasks(ctx)
|
||||
cmd := runServer(ctx)
|
||||
|
||||
ui, err := lorca.New("http://localhost:8088", "", 1024, 768)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue