Added a simple makefile. Changed the README.md

This commit is contained in:
Beepboop Belong the 3rd 2020-04-13 20:52:13 +02:00
parent b69656eb81
commit 54936588bb
Signed by: beepboopbelong
GPG Key ID: B873A12869A7BD29
3 changed files with 16 additions and 4 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
build:
dub build
install:
cp hentai_downloader ~/.local/bin

View File

@ -4,11 +4,16 @@
* dub * dub
* dmd or ldc2 * 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 On the first run of the program a config.json files is created in
`~/.config/hentai_downloader` `~/.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 * [ ] all the other ones
## TODO: ## 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 * [ ] Fix the FIXMEs in the code
* [ ] Optional flag to compress the downloaded folders * [ ] Optional flag to compress the downloaded folders

View File

@ -109,6 +109,8 @@ static private:
+/ +/
void checkStandardFolder(Config config) void checkStandardFolder(Config config)
{ {
// FIXME: nested folders break me
// Replace the relative path // Replace the relative path
string absolutePath = makeRelativePathAbsolute(config.standard_download_folder); string absolutePath = makeRelativePathAbsolute(config.standard_download_folder);