Skip to content

Commit

Permalink
Embed frontend with all syntax
Browse files Browse the repository at this point in the history
Changes the `assets` embed to use `all:frontend/out` instead of `frontend/out/*` to prevent the error described in #1. Fix recommended by @siddmo.
  • Loading branch information
lunarca committed Dec 24, 2022
1 parent ab1790a commit 45cda8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options/windows"
)

//go:embed frontend/out/* frontend/out/_next/static/*/* frontend/out/_next/static/*/*/*
//go:embed all:frontend/out frontend/out/_next/static/*/* frontend/out/_next/static/*/*/*
var assets embed.FS

//go:embed build/appicon.png
Expand Down

0 comments on commit 45cda8c

Please # to comment.