Unverified Commit e10593c0 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

gitea: fix create static compressed files
parents bd65e2e0 f5df37e8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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)' \