From 987ca3c0b659e688c063eb80750044ed955573ab Mon Sep 17 00:00:00 2001 From: zjamnik Date: Fri, 8 Jul 2022 19:45:34 +0200 Subject: [PATCH] dropped binary release deploy script creates a zip release now --- .gitignore | 1 + README.md | 8 ++------ deploy.ps1 | 4 +++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 48e08db..1b3478d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ Download/**/** *.conf Release +WNtoEmail # Logs logs diff --git a/README.md b/README.md index 57a9ee1..55b5685 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ At first start it will create an empty config file `./novelConfig.conf`, adjust "sendOnlyFormat": "epub" // Format filter for sendOnly files "sendOnlyConvert": true, // Convert sendOnly files, epub => epub is supported, // useful for compressing images in big files - "sendOnlyRegex": ""(?\\d*). (?.*); (?<author>.*)"" // Metadata regex for extracting + "sendOnlyRegex": "(?<volume>\\d*). (?<title>.*); (?<author>.*)" // Metadata regex for extracting // information from filename for external sources }, "novels": [ @@ -94,11 +94,7 @@ For ongoing series it would create 6 volumes: # Usage -Grab the latest release and run the binary. - -OR - -Run the script directly from cloned project with Node.js. +Run the script with node. Intended usage is with a Task Scheduler on Windows. There shouldn't be anything OS specific. Cron on Linux should work after modifying `"converterPath"` to an appropriate command, but that's untested. At present there is no crash resiliency, if the program crashes for any reason `"lastChapterURL"`, `"lastVolume"` and `"completed"` config will not be consistent and needs to be corrected. There is a copy of config file created at the start. diff --git a/deploy.ps1 b/deploy.ps1 index cd42c54..690719f 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -1 +1,3 @@ -pkg .\WNtoEmail.js --out-path ./Release \ No newline at end of file +Copy-Item -Recurse -Force .\node_modules .\WNtoEmail +Copy-Item .\WNtoEmail.js .\WNtoEmail +C:\Program` Files\7-Zip\7z.exe a -tzip Release\WNtoEmail.zip .\WNtoEmail \ No newline at end of file