forked from grvlle/constellation_wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.go
48 lines (36 loc) · 779 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main
import (
"math/rand"
"os"
"time"
"runtime"
"github.com/wailsapp/wails"
_ "embed"
app "github.com/grvlle/constellation_wallet/backend"
)
func init() {
rand.Seed(time.Now().UnixNano())
}
//go:embed frontend/dist/app.js
var js string
//go:embed frontend/dist/app.css
var css string
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
}
frontend := wails.CreateApp(&wails.AppConfig{
Width: 1280,
Height: 780,
Resizable: true,
Title: "Molly Wallet",
JS: js,
CSS: css,
Colour: "#131313",
})
frontend.Bind(&app.WalletApplication{})
err := frontend.Run()
if err != nil {
panic(err)
}
}