knadh / tg-archive

A tool for exporting Telegram group chats into static websites like mailing list archives.
MIT License
885 stars 134 forks source link

Permission denied on example project files #60

Closed milahu closed 2 years ago

milahu commented 2 years ago

when i package tg-archive with the nix package manager the example files in result/lib/python3.9/site-packages/tgarchive/example/ are read only

when i run tg-archive --new, the files in example/ are still read only

$ find example/ | xargs stat -c"%a %n"
555 example/
444 example/rss_template.html
444 example/config.yaml
444 example/template.html
555 example/static
444 example/static/thumb.png
444 example/static/main.js
444 example/static/style.css
444 example/static/logo.svg
444 example/static/favicon.png

solution https://stackoverflow.com/a/2853934/10440128