From dfd6b362eab8db301e61c74fe8c994c55bc5af36 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 18 Mar 2023 23:28:05 +0800 Subject: [PATCH] feat: automatic modification of CDE mark --- src/release/utils/mobi-meta.jar | Bin 0 -> 24773 bytes src/release/utils/release.py | 33 ++++++++++++++++---------------- 2 files changed, 16 insertions(+), 17 deletions(-) create mode 100644 src/release/utils/mobi-meta.jar diff --git a/src/release/utils/mobi-meta.jar b/src/release/utils/mobi-meta.jar new file mode 100644 index 0000000000000000000000000000000000000000..9c45b57285e4b83ad6dfb9f03fdc151fc021c71b GIT binary patch literal 24773 zcmb5VQ;euVyRF-{ZQC|x+qP}nwr$(CZQJhIw%up`XYHJbY~PY zYLvVbFbE0&1OxK70YCs`M3e<+C1geEeqO3HLHqK`7uQ_@njbPKRjv{bXxb4`j2%gpIt z?I)(@WEj~PPyRm0OiwSl%u3MEwJHKMcyzdT{J$MwUy$Gb`M18nzwtkJ0QH{^3@mKv zjI0fuoNCk{)wNepf9R*Dynj8G+QidtZH<$t)zZGcd-c=2A-_Q59m&_ zy>8y;cu%)K@xET?8T^e#1nJQZnxJN%iD2`T>~+ET;^^HE2GM;`)(=KP+Q+3fM-=yw zHncB-`r#;FQ(&?q>O2*K>fXom?=s#(QQk|f>5^vJyv4`h@Sm^am+U_GM`bxTNm>2K zk$2jukP)?Mv#e0AUJ4P`BzIjLoqMcp<7eD@-tcUn27+!s^Y_CNUx+up)Gyv5ls%Fn zvsAVV4^>gUl($Rw%M=&plwr!-bw=_dd#FN{uaq3ZBDqyys@kPScBpO??wu^Yd#G+6 ziK0JIuhQCm2_yQH@BJgeNx#*od}|Kbsqhr<>m$XKc`6SXQRAxKY9h&tpOUC@6Tfej zd1yb)lzFH>_p01wU*@JxKvDhV?+XLdK$s4B59A98Q5ZqJVY8xZL_OBSom1OL3=70h zkpSlwMM5b*c9&W56i6bZX5nu5H0k3>RptxclpEZ8KH$1^)jwLs~r z-id+MK^TwD2+Oc^c1)a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i@y%{771Ayc2}2gdV(mcVNVk4$Qr)}GgA-0oz*<vFKD<$Gx+LXObUbVx(_H#e&>V6k1AN7cIa(Z(k+}fhlIj-5N zOS!2@m|mT6RVbS214>sli>B8}Ax9$XjH!&YZuX^sv>D8d-Vk-#^}9E7%m^vD#F$nm zop_+_ljbefXdkAFS%do*;HZ5TvYl4KdcXOuEHO&}7{qQ4N_x z@GiC^jjH8A#LL^CdS7B|LsDyFpnR_o;y#Bl>iI)`bO8#e<1D`fuwT+*TxV`9TY6jv ziR`#2oU0<9gW5~1zR?KXMxcH^5$9FvupX38RFTj8IH9-B*>Z20VI6uQ7Y`6nnOiRu zQMtqZZ37DkNv4oSfrFcP0OP4C!apH^`zLq(zoF{Cx$FOo{{gB0rm+9LmFy7>{Wo>} zPl!A$|7YtX2K(O%k7<3ssp)^B`(gQqq5k*2$E2Cx*MvV|iuI_X_?ztax6I=K*?-C` zK6v8(0SJ5ysrg&x@x None: def setPdocMark(originFile: str, targetFile: str) -> None: + jdkImage = 'openjdk:17-alpine' tempDir = tempfile.TemporaryDirectory() # access temporary directory - - shutil.copy(originFile, os.path.join(tempDir.name, 'xxrs.azw3')) - - # TODO: copy originFile -> tempDir.name - # remember changing the originFile suffix - - # TODO: fetch convert jar file (https://github.com/dnomd343/mobi-meta/releases/latest/download/mobi-meta.jar) - - # TODO: run openjdk container and generate new eBook (openjdk:17-alpine) - # java -jar mobi-meta.jar edit {xxrs.azw3} {xxrs_new.azw3} --pdoc - - # TODO: copy output file as targetFile - - pass + suffix = os.path.splitext(originFile)[-1] + shutil.copy(originFile, os.path.join(tempDir.name, 'xxrs%s' % suffix)) + shutil.copy( + os.path.join(os.path.dirname(os.path.realpath(__file__)), 'mobi-meta.jar'), # script folder + os.path.join(tempDir.name, 'mobi-meta.jar') + ) + dockerCommand = 'docker run --rm -v %(src)s:%(tmp)s --workdir %(tmp)s --entrypoint sh %(img)s -c "%(cmd)s"' % { + 'src': tempDir.name, + 'tmp': '/xxrs/', + 'img': jdkImage, + 'cmd': 'java -jar mobi-meta.jar edit xxrs%s xxrs_mod%s --pdoc' % (suffix, suffix), + } + subprocess.Popen(dockerCommand, shell = True).wait() # blocking wait + shutil.copy(os.path.join(tempDir.name, 'xxrs_mod%s' % suffix), targetFile) + tempDir.cleanup() def azw3Release(metadata: dict, content: dict) -> None: tempDir = tempfile.TemporaryDirectory() # access temporary directory print('Calibre AZW3 Build -> %s' % tempDir.name) calibreBuild(tempDir.name, '.azw3', ['--mobi-toc-at-start'], metadata, content) - - # TODO: change `[EBOK]` as `[PDOC]` setPdocMark(os.path.join(tempDir.name, './xxrs.azw3'), releaseInfo['azw3']) - tempDir.cleanup()