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

fix build: use relative symlinks #65

Closed milahu closed 2 years ago

knadh commented 2 years ago

Could you explain what this does and why?

milahu commented 2 years ago

well ... it creates relative symlinks ^^ like the linux command ln -sr /path/to/src /path/to/dst

so instead of media -> /home/user/path/to/project/media this gives (for example) media -> ../media

useful to have everything in one project folder (example)

$ tree
.
├── build.sh
├── config.yaml
├── data.sqlite
├── media
│   ├── 1.jpg
│   ├── 2.jpg
│   ├── thumb_1.jpg
│   └── thumb_2.jpg
├── rss_template.html
├── secret.sh
├── secret.sh.example
├── session.session
├── site
│   ├── 2022-01.html
│   ├── 2022-02.html
│   ├── index.atom
│   ├── index.html -> 2022-02.html
│   ├── index.xml
│   ├── media -> ../media
│   └── static -> ../static
├── static
│   ├── favicon.png
│   ├── logo.svg
│   ├── main.js
│   ├── style.css
│   └── thumb.png
├── sync.sh
├── template.html
├── tg-archive.nix
└── tg-archive.sh
benborges commented 2 years ago

Was this accepted and merged already ?

knadh commented 2 years ago

Had missed this. Merged and released v0.5.5. Thanks for the PR @milahu