Front website https://natronics.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
571 B

9 years ago
  1. public: favicon.ico source
  2. npx hexo generate
  3. cp -r node_modules/mathjax/es5 public/mathjax
  4. cp favicon.ico public/
  5. favicon.ico: favicon.svg
  6. rsvg-convert -w 16 -h 16 --background-color=none favicon.svg -o favicon-16.png
  7. rsvg-convert -w 32 -h 32 --background-color=none favicon.svg -o favicon-32.png
  8. rsvg-convert -w 64 -h 64 --background-color=none favicon.svg -o favicon-64.png
  9. convert favicon-16.png favicon-32.png favicon-64.png favicon.ico
  10. rm favicon*.png
  11. deploy: public
  12. rsync -avh public/* natronics.org:/var/www
  13. clean:
  14. rm -rf public
  15. .PHONY: deploy clean