Skip to content

Commit

Permalink
Add compile bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
ethicnology committed Sep 2, 2021
1 parent 89a035e commit 4aad98b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
Torrents scraper using The Pirate Bay, YggTorrent and EZTV.

## prerequisites
### The Pirate Bay ONLY
**thepiratebay.org** is protected from scrapers, to bypass this protection **skrapilo** is using an automated chromium browser (Puppeteer).
- Linux
- You need a recent version of **chromium-browser** installed in **/usr/bin/chromium-browser**.

### Only for The Pirate Bay

**thepiratebay.org** is protected from scrapers, to bypass this protection
**skrapilo** is using an automated chromium browser (Puppeteer).

- Linux
- You need a recent version of **chromium-browser** installed in
**/usr/bin/chromium-browser**.

```sh
sudo apt install chromium-browser
Expand Down Expand Up @@ -36,6 +41,12 @@ Or compile the executable.
deno compile -A --unstable main.ts
```

**compile.sh** build skrapilo for all available deno targets.
```sh
chmod +x compile.sh
./compile.sh
```

## usage

```sh
Expand Down
6 changes: 6 additions & 0 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
targets=("x86_64-unknown-linux-gnu" "x86_64-pc-windows-msvc" "x86_64-apple-darwin" "aarch64-apple-darwin")
version=0.1.0-alpha
for target in ${targets[@]}; do
eval "deno compile -A --unstable --target $target --output skrapilo-$version-$target main.ts"
done
Binary file removed skrapilo
Binary file not shown.

0 comments on commit 4aad98b

Please sign in to comment.