From 5e78bdb982488c979222ef80e6850c09c1eb8232 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 13 Jul 2019 11:15:38 +0000 Subject: [PATCH] add custom options to ariang option editing dialog --- Dockerfile | 7 +++++++ ariang-additional-options.js | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 ariang-additional-options.js diff --git a/Dockerfile b/Dockerfile index 488bfca..efc3e2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,13 @@ RUN npm run-script build RUN git clone --depth=1 https://github.com/mayswind/AriaNg /AriaNg WORKDIR /AriaNg +COPY ariang-additional-options.js . +RUN ( \ + head -n-3 src/scripts/config/aria2Options.js; \ + cat ariang-additional-options.js; \ + tail -3 src/scripts/config/aria2Options.js \ + ) > src/scripts/config/aria2Options.js.new \ + && mv src/scripts/config/aria2Options.js.new src/scripts/config/aria2Options.js RUN npm install \ && npm install natives@1.1.6 \ && npx gulp clean build-bundle diff --git a/ariang-additional-options.js b/ariang-additional-options.js new file mode 100644 index 0000000..40dd7d1 --- /dev/null +++ b/ariang-additional-options.js @@ -0,0 +1,12 @@ +, // leave this here + { + key: 'bt-seed-unverified', + category: 'bittorrent', + canShow: 'new|waiting|paused' + }, + { + key: 'check-integrity', + category: 'bittorrent', + canShow: 'new|waiting|paused' + } +// vim: set ts=4 sw=4 sts=4: