[templates] Use embed all to include all files (#1862)

Otherwise files prefixed with `.` and `_` won't get embedded.
This commit is contained in:
stffabi
2022-09-17 00:37:30 +10:00
committed by GitHub
parent f78476e051
commit 1026119eca
41 changed files with 51 additions and 51 deletions
@@ -11,7 +11,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options/windows"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
//go:embed build/appicon.png
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -12,7 +12,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options/windows"
)
//go:embed frontend/src
//go:embed all:frontend/src
var assets embed.FS
//go:embed build/appicon.png
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/src
//go:embed all:frontend/src
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
@@ -7,7 +7,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
+1 -1
View File
@@ -24,7 +24,7 @@ import (
"strings"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
type FileLoader struct {
+1 -1
View File
@@ -41,7 +41,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
+1 -1
View File
@@ -159,7 +159,7 @@ Example: An application has the following project layout. All final assets are p
Those assets may be used by the application by simply creating an `embed.FS`:
```go title="Assets Example"
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
func main() {
+1 -1
View File
@@ -15,7 +15,7 @@ Check that your application includes the assets from the correct directory. In y
something similar to the following code:
```go
//go:embed frontend/dist
//go:embed all:frontend/dist
var assets embed.FS
```

Some files were not shown because too many files have changed in this diff Show More