From f509ca4810842c814067431d42bc0a087c2d91ca 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 | 10 ++++++++++ 2 files changed, 17 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..91b37eb --- /dev/null +++ b/ariang-additional-options.js @@ -0,0 +1,10 @@ +, // leave this here + { + key: 'bt-seed-unverified', + category: 'bittorrent' + }, + { + key: 'check-integrity', + category: 'bittorrent' + } +// vim: set ts=4 sw=4 sts=4: