forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
818 B
44 lines
818 B
package main
|
|
|
|
import (
|
|
"math/rand"
|
|
"os"
|
|
"time"
|
|
|
|
"runtime"
|
|
|
|
"github.com/leaanthony/mewn"
|
|
"github.com/wailsapp/wails"
|
|
|
|
app "github.com/grvlle/constellation_wallet/backend"
|
|
)
|
|
|
|
func init() {
|
|
rand.Seed(time.Now().UnixNano())
|
|
}
|
|
|
|
func main() {
|
|
if runtime.GOOS != "windows" {
|
|
os.Setenv("PATH", "/usr/bin:/sbin") // This is neccessary when interacting with the CLI on RedHat and other linux distros
|
|
}
|
|
|
|
js := mewn.String("./frontend/dist/app.js")
|
|
css := mewn.String("./frontend/dist/app.css")
|
|
|
|
frontend := wails.CreateApp(&wails.AppConfig{
|
|
Width: 1280,
|
|
Height: 780,
|
|
Resizable: true,
|
|
Title: "Molly - Constellation Desktop Wallet",
|
|
JS: js,
|
|
CSS: css,
|
|
Colour: "#131313",
|
|
})
|
|
|
|
frontend.Bind(&app.WalletApplication{})
|
|
err := frontend.Run()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
}
|
|
|