Merge pull request #324589 from Izorkin/fix-gitea-static

gitea: fix create static compressed files
This commit is contained in:
Sandro 2024-07-08 00:08:48 +02:00 committed by GitHub
commit e10593c057
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,8 +93,10 @@ in buildGoModule rec {
data-compressed = runCommand "gitea-data-compressed" {
nativeBuildInputs = [ brotli xorg.lndir ];
} ''
mkdir $out
lndir ${gitea.data}/ $out/
mkdir -p $out/{options,public,templates}
lndir ${frontend}/public $out/public
lndir ${gitea.data}/options $out/options
lndir ${gitea.data}/templates $out/templates
# Create static gzip and brotli files
find -L $out -type f -regextype posix-extended -iregex '.*\.(css|html|js|svg|ttf|txt)' \