Added a simple makefile. Changed the README.md
This commit is contained in:
parent
b69656eb81
commit
54936588bb
5
Makefile
Normal file
5
Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
build:
|
||||||
|
dub build
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp hentai_downloader ~/.local/bin
|
13
README.md
13
README.md
@ -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
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user