From 2417251f027e4b6310c583de9778aed846d5dc3d Mon Sep 17 00:00:00 2001 From: Atterpac <89053530+atterpac@users.noreply.github.com> Date: Sat, 16 Nov 2024 19:27:17 -0700 Subject: [PATCH] defualt to embed all:frontend/dist (#3887) changelog.md --- mkdocs-website/docs/en/changelog.md | 1 + v3/internal/templates/_common/main.go.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mkdocs-website/docs/en/changelog.md b/mkdocs-website/docs/en/changelog.md index c07d2bc14..e9f5b07e7 100644 --- a/mkdocs-website/docs/en/changelog.md +++ b/mkdocs-website/docs/en/changelog.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `GeneralAutofillEnabled` and `PasswordAutosaveEnabled` Windows options by [leaanthony](https://github.com/leaanthony) in [#3766](https://github.com/wailsapp/wails/pull/3766) ### Changed +- Asset embed to include `all:frontend/dist` to support frameworks that generate subfolders by @atterpac in [#3887](https://github.com/wailsapp/wails/pull/3887) - Taskfile refactor by [leaanthony](https://github.com/leaanthony) in [#3748](https://github.com/wailsapp/wails/pull/3748) - Upgrade to `go-webview2` v1.0.16 by [leaanthony](https://github.com/leaanthony) - Fixed `Screen` type to include `ID` not `Id` by [etesam913](https://github.com/etesam913) in [#3778](https://github.com/wailsapp/wails/pull/3778) diff --git a/v3/internal/templates/_common/main.go.tmpl b/v3/internal/templates/_common/main.go.tmpl index 948759204..43af2bdf0 100644 --- a/v3/internal/templates/_common/main.go.tmpl +++ b/v3/internal/templates/_common/main.go.tmpl @@ -14,7 +14,7 @@ import ( // made available to the frontend. // See https://pkg.go.dev/embed for more information. -//go:embed frontend/dist +//go:embed all:frontend/dist var assets embed.FS // main function serves as the application's entry point. It initializes the application, creates a window,