Browse Source

gitea add npm theme installation

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 5 years ago
parent
commit
0d50d678c0
  1. 6
      SPECS/gitea.spec

6
SPECS/gitea.spec

@ -43,6 +43,12 @@ sed -i 's|^AVATAR_UPLOAD_PATH = data/avatars$|AVATAR_UPLOAD_PATH = /var/lib/gite @@ -43,6 +43,12 @@ sed -i 's|^AVATAR_UPLOAD_PATH = data/avatars$|AVATAR_UPLOAD_PATH = /var/lib/gite
sed -i 's|^PATH = data/attachments$|PATH = /var/lib/gitea/data/attachments|g' custom/conf/app.ini.sample
sed -i 's|^ROOT_PATH =$|ROOT_PATH = /var/log/gitea|g' custom/conf/app.ini.sample
sed -i 's|^TEMP_PATH = data/tmp/uploads$|TEMP_PATH = /var/lib/gitea/data/tmp/uploads|g' custom/conf/app.ini.sample
npm install
npx eslint web_src/js webpack.config.js
npx webpack
npx lessc web_src/less/index.less public/css/index.css
npx lessc web_src/less/themes/arc-green.less o> public/css/theme-arc-green.css
npx postcss --use autoprefixer --use cssnano --no-map --replace public/css/*


%install

Loading…
Cancel
Save