summaryrefslogtreecommitdiffstats
path: root/modules/public
diff options
context:
space:
mode:
Diffstat (limited to 'modules/public')
-rw-r--r--modules/public/public_bindata.go2
-rw-r--r--modules/public/static.go6
2 files changed, 7 insertions, 1 deletions
diff --git a/modules/public/public_bindata.go b/modules/public/public_bindata.go
index eb10d96426..c5485b7cc0 100644
--- a/modules/public/public_bindata.go
+++ b/modules/public/public_bindata.go
@@ -7,4 +7,4 @@
package public
-//go:generate go run -mod=vendor ../../build/generate-bindata.go ../../public public bindata.go
+//go:generate go run -mod=vendor ../../build/generate-bindata.go ../../public public bindata.go true
diff --git a/modules/public/static.go b/modules/public/static.go
index 32ba0fe258..2e35329a07 100644
--- a/modules/public/static.go
+++ b/modules/public/static.go
@@ -18,8 +18,14 @@ import (
"time"
"code.gitea.io/gitea/modules/log"
+ "code.gitea.io/gitea/modules/timeutil"
)
+// GlobalModTime provide a gloabl mod time for embedded asset files
+func GlobalModTime(filename string) time.Time {
+ return timeutil.GetExecutableModTime()
+}
+
func fileSystem(dir string) http.FileSystem {
return Assets
}