From da5e35578aa6dbd6e0da5b09255525a6cf26b584 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Sat, 3 Feb 2024 19:44:50 +0800 Subject: [PATCH] fix: embed all files of dist --- public/public.go | 2 +- server/static/static.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/public.go b/public/public.go index a158f3e0..e94146c3 100644 --- a/public/public.go +++ b/public/public.go @@ -2,5 +2,5 @@ package public import "embed" -//go:embed dist +//go:embed all:dist var Public embed.FS diff --git a/server/static/static.go b/server/static/static.go index cb510995..ec16014c 100644 --- a/server/static/static.go +++ b/server/static/static.go @@ -3,7 +3,6 @@ package static import ( "errors" "fmt" - "github.com/alist-org/alist/v3/public" "io" "io/fs" "net/http" @@ -13,6 +12,7 @@ import ( "github.com/alist-org/alist/v3/internal/conf" "github.com/alist-org/alist/v3/internal/setting" "github.com/alist-org/alist/v3/pkg/utils" + "github.com/alist-org/alist/v3/public" "github.com/gin-gonic/gin" )