Wails v2 is currently Beta for Windows

v1.16.0

This version requires Go v1.16 as a minimum as it now uses the native embed capabilities rather mewn.

The templates have been updated so any new projects will be using native embed.

Migrating existing projects

Projects made before v1.16.0 used mewn to embed the assets. To update them, take the following example as a guide:

Before

package main

import (
  "github.com/leaanthony/mewn"
  "github.com/wailsapp/wails"
)

func basic() string {
  return "Hello World!"
}

func main() {

  js := mewn.String("./frontend/dist/app.js")
  css := mewn.String("./frontend/dist/app.css")

  app := wails.CreateApp(&wails.AppConfig{
    Width:  1024,
    Height: 768,
    Title:  "{{.Name}}",
    JS:     js,
    CSS:    css,
    Colour: "#131313",
  })
  app.Bind(basic)
  app.Run()
}

After

import (
  _ "embed"
  "github.com/wailsapp/wails"
)

func basic() string {
  return "Hello World!"
}

//go:embed frontend/dist/app.js
var js string

//go:embed frontend/dist/app.css
var css string

func main() {

  app := wails.CreateApp(&wails.AppConfig{
    Width:  1024,
    Height: 768,
    Title:  "{{.Name}}",
    JS:     js,
    CSS:    css,
    Colour: "#131313",
  })
  app.Bind(basic)
  app.Run()
}