Browse Source

Added a simple makefile. Changed the README.md

master
parent
commit
54936588bb
Signed by: beepboopbelong <beepboopbelong@firemail.cc> GPG Key ID: B873A12869A7BD29
3 changed files with 16 additions and 4 deletions
  1. +5
    -0
      Makefile
  2. +9
    -4
      README.md
  3. +2
    -0
      source/config/downloaderconfig.d

+ 5
- 0
Makefile View File

@@ -0,0 +1,5 @@
build:
dub build

install:
cp hentai_downloader ~/.local/bin

+ 9
- 4
README.md View File

@@ -4,11 +4,16 @@
* dub
* dmd or ldc2

## Building hentai_downloader
## Installing hentai_downloader

`dub build`
``
git clone https://git.lain.church/beepboopbelong/Hentai-Downloader.git
cd Hentai-Downloader
make
make install
``

# Config file
## Config file

On the first run of the program a config.json files is created in
`~/.config/hentai_downloader`
@@ -19,6 +24,6 @@ On the first run of the program a config.json files is created in
* [ ] all the other ones

## TODO:
* [ ] Create a makefile that builds and installs the hentai_downloader into /usr/local/bin
* [X] Create a makefile that builds and installs the hentai_downloader into ~/.local/bin
* [ ] Fix the FIXMEs in the code
* [ ] Optional flag to compress the downloaded folders

+ 2
- 0
source/config/downloaderconfig.d View File

@@ -109,6 +109,8 @@ static private:
+/
void checkStandardFolder(Config config)
{
// FIXME: nested folders break me

// Replace the relative path
string absolutePath = makeRelativePathAbsolute(config.standard_download_folder);



Loading…
Cancel
Save