From 3d87972edfdb1b3f78fa22982519ac02818df7ae Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 12:33:35 +0800 Subject: Serve tarball of source rather than using individual source files --- resources.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'resources.go') diff --git a/resources.go b/resources.go index 54ff752..b0db7ee 100644 --- a/resources.go +++ b/resources.go @@ -13,16 +13,7 @@ import ( "github.com/tdewolff/minify/v2/html" ) -// We embed all source for easy AGPL compliance. -// -//go:embed .gitignore .gitattributes -//go:embed LICENSE README.md -//go:embed *.go go.mod go.sum -//go:embed *.scfg -//go:embed Makefile -//go:embed static/* templates/* scripts/* sql/* man/* -//go:embed hookc/*.c -//go:embed vendor/* +//go:embed LICENSE source.tar.gz var sourceFS embed.FS var sourceHandler = http.StripPrefix( -- cgit v1.2.3