fix: make scrape_media.py path resolution robust + include it in Nix build
Deploy Scraper / build-and-deploy (push) Canceled after 0s

- Nix flake now installs scrape_media.py to $out/bin so CI deploys it with the binary
- run_playwright_scraper locates the script alongside the running binary (Nix store),
  the Cargo manifest dir (dev), /home/code/scraper, or $SCRAPER_SCRIPT_DIR
- Fix var_os() Option match
This commit is contained in:
asepharyana
2026-09-01 15:40:57 +07:00
parent 4c5dfdb156
commit 4684a6a75c
2 changed files with 21 additions and 2 deletions
+2
View File
@@ -39,6 +39,8 @@
installPhase = ''
mkdir -p $out/bin
cp target/release/scraper $out/bin/scraper
cp $src/scrape_media.py $out/bin/scrape_media.py
chmod +x $out/bin/scrape_media.py
'';
};
in