From c00fbc1189c44b6d3d8c79033a3044deaf1c4ca1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Mar 2025 15:10:38 +0800 Subject: [PATCH] Add gohtmplgen to the build process --- Makefile | 2 ++ resources.go | 2 +- diff --git a/Makefile b/Makefile index 55d5dddb0b4dd8519c188ccc1ca9f9c7d19b31f5..9e71ff84fac28e933ac1ed40074dd54b2f197bec 100644 --- a/Makefile +++ b/Makefile @@ -17,3 +17,5 @@ clean: $(RM) forge version.go vendor +htmpl.go: htmpl/* + gohtmplgen -o htmpl.go htmpl/* diff --git a/resources.go b/resources.go index c1b4a9b3be156ba02a07aa0ed14f89693cee649d..d689e6f796f290e36cbb3e389eac70e410fede36 100644 --- a/resources.go +++ b/resources.go @@ -20,7 +20,7 @@ //go:embed LICENSE README.md //go:embed *.go go.mod go.sum //go:embed *.scfg //go:embed Makefile -//go:embed static/* templates/* scripts/* sql/* +//go:embed static/* htmpl/* templates/* scripts/* sql/* //go:embed hookc/*.c //go:embed vendor/* var sourceFS embed.FS -- 2.48.1