Skip to content
Permalink
Browse files

improve pak downloader script

- rename download-dpk to download-paks as it can also download older version with pk3
- do torrent download by default or fallback to http if aria2c is missing
- be able to use aria2c, curl or wget for http download
- resume partial http downloaded files instead of restarting entirely their download
- fix a lot of bugs, did you know that a mistake in former torrent downloader
  prevented another bug to wipe your source repository?
- cycle through HTTP mirrors when one is unavailable
- properly wipe cache directory
- do not clean-up yet files from previous releases

- as a side work, improve the update-version-number script
- script extensions considered harmful
  • Loading branch information
illwieckz committed Nov 19, 2019
1 parent 010747a commit 02c4b06ae61724349eb631baedf35e96a4b3830e
Showing with 621 additions and 391 deletions.
  1. +2 −1 .gitignore
  2. +4 −10 README.md
  3. +0 −107 download-dpk-torrent.sh
  4. +0 −227 download-dpk.sh
  5. +569 −0 download-paks
  6. +46 −0 update-version-number
  7. +0 −46 update-version-number.sh
@@ -28,8 +28,9 @@ build
nacl_helper_bootstrap*
nacl_loader*

# pk3s
# pk3s, dpks
*.pk3
*.dpk

# CBSE
src/sgame/backend
@@ -137,21 +137,15 @@ cd build

#### If you don't have the assets, you can download them first

The package downloader script can use `aria2c`, `curl` or `wget`, `aria2c` is recommended.
You can do `./download-paks --help` for more options.

```sh
cd build
mkdir pkg
```

```sh
# Fast, requires “aria2c”:
../download-dpk-torrent.sh pkg
# Or with unreliable speed, requires “curl”:
../download-dpk.sh pkg
./download-paks build/pkg
```

```sh
cd build
./daemon
```

This file was deleted.

This file was deleted.

0 comments on commit 02c4b06

Please sign in to comment.
You can’t perform that action at this time.