You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-15 23:54:29 +02:00
Add initial linux client
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -41,3 +41,4 @@ octo*.db
|
|||||||
.prettierrc.json
|
.prettierrc.json
|
||||||
mac/temp
|
mac/temp
|
||||||
mac/dist
|
mac/dist
|
||||||
|
linux/octo-linux-app
|
||||||
|
7
linux/Makefile
Normal file
7
linux/Makefile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.PHONY: run
|
||||||
|
|
||||||
|
run:
|
||||||
|
go run ./main.go
|
||||||
|
|
||||||
|
build:
|
||||||
|
go build -o octo-linux-app
|
5
linux/go.mod
Normal file
5
linux/go.mod
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module github.com/mattermost/mattermost-octo-tasks/linux
|
||||||
|
|
||||||
|
go 1.15
|
||||||
|
|
||||||
|
require github.com/webview/webview v0.0.0-20200724072439-e0c01595b361
|
2
linux/go.sum
Normal file
2
linux/go.sum
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
github.com/webview/webview v0.0.0-20200724072439-e0c01595b361 h1:e0+/fQY5l9NdCwPsEg9S8AgE5lFhZ/6UX+b2KkpIBFg=
|
||||||
|
github.com/webview/webview v0.0.0-20200724072439-e0c01595b361/go.mod h1:rpXAuuHgyEJb6kXcXldlkOjU6y4x+YcASKKXJNUhh0Y=
|
33
linux/main.go
Normal file
33
linux/main.go
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
"os/exec"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/webview/webview"
|
||||||
|
)
|
||||||
|
|
||||||
|
func runOctoTasks() {
|
||||||
|
cmd := exec.Command("./bin/octoserver", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
|
||||||
|
cmd.Stdout = os.Stdout
|
||||||
|
err := cmd.Run()
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
log.Printf("Just ran subprocess %d, exiting\n", cmd.Process.Pid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
os.Chdir("../")
|
||||||
|
debug := true
|
||||||
|
w := webview.New(debug)
|
||||||
|
defer w.Destroy()
|
||||||
|
go runOctoTasks()
|
||||||
|
|
||||||
|
w.SetTitle("Octo Tasks")
|
||||||
|
w.SetSize(1024, 768, webview.HintNone)
|
||||||
|
w.Navigate("http://localhost:8000")
|
||||||
|
w.Run()
|
||||||
|
}
|
Reference in New Issue
Block a user