From 7904662f25997ba1466c9f21c564f1f3f066fb9f Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Tue, 10 Jul 2018 08:09:04 +0200 Subject: Let 7-Zip handle all archive operations --- README.md | 1 - 1 file changed, 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index b406bb8..85e20bf 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,6 @@ This script born as a cross-platform alternative to `KindleComicParser` by **Dc5 The app relies and includes the following scripts: - `DualMetaFix` script by **K. Hendricks**. Released with GPL-3 License. - - `rarfile.py` script © 2005-2014 **Marko Kreen** . Released with ISC License. - `image.py` class from **Alex Yatskov**'s [Mangle](https://github.com/FooSoft/mangle/) with subsequent [proDOOMman](https://github.com/proDOOMman/Mangle)'s and [Birua](https://github.com/Birua/Mangle)'s patches. - Icon is by **Nikolay Verin** ([http://ncrow.deviantart.com/](http://ncrow.deviantart.com/)) and released under [CC BY-NC-SA 3.0](http://creativecommons.org/licenses/by-nc-sa/3.0/) License. -- cgit 1.4.1 From a2ffd259b8d5c20b131faa7be0b81fd87096fd9b Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Tue, 10 Jul 2018 09:00:13 +0200 Subject: Code cleanup --- .travis.yml | 2 +- README.md | 6 +++--- appveyor.yml | 4 ++-- kindlecomicconverter/dualmetafix.py | 1 + kindlecomicconverter/metadata.py | 2 -- kindlecomicconverter/shared.py | 22 ++++++++++------------ 6 files changed, 17 insertions(+), 20 deletions(-) (limited to 'README.md') diff --git a/.travis.yml b/.travis.yml index 977b0df..eba8cca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_install: install: - pip3 install -r requirements.txt -- pip3 install certifi https://github.com/bjones1/pyinstaller/archive/pyqt5_fix.zip +- pip3 install certifi https://github.com/pyinstaller/pyinstaller/archive/develop.zip - npm install -g appdmg script: python3 setup.py build_binary diff --git a/README.md b/README.md index 85e20bf..68c5311 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,9 @@ sudo pip3 install --upgrade pillow python-slugify psutil pyqt5 raven ## INPUT FORMATS **KCC** can understand and convert, at the moment, the following input types: - Folders containing: PNG, JPG or GIF files -- CBZ, ZIP -- CBR, RAR *(With `unrar` executable)* -- CB7, 7Z *(With `7za` executable)* +- CBZ, ZIP *(With `7z` executable)* +- CBR, RAR *(With `7z` executable)* +- CB7, 7Z *(With `7z` executable)* - PDF *(Only extracting JPG images)* ## USAGE diff --git a/appveyor.yml b/appveyor.yml index 2eb446c..b603c3c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,11 +1,11 @@ environment: - PYTHON: "C:\\Python36-x64" + PYTHON: "C:\\Python37-x64" install: - set PATH="%PYTHON%\\Scripts";"C:\\Program Files (x86)\\Inno Setup 5";%PATH% - "%PYTHON%\\python.exe -m pip install --upgrade pip setuptools wheel" - "%PYTHON%\\python.exe -m pip install -r requirements.txt" - - "%PYTHON%\\python.exe -m pip install certifi https://github.com/bjones1/pyinstaller/archive/pyqt5_fix.zip" + - "%PYTHON%\\python.exe -m pip install certifi https://github.com/pyinstaller/pyinstaller/archive/develop.zip" - nuget install secure-file -ExcludeVersion - secure-file\tools\secure-file -decrypt other\windows\sentry.py.enc -out kindlecomicconverter\sentry.py -secret %ENCRYPTION% diff --git a/kindlecomicconverter/dualmetafix.py b/kindlecomicconverter/dualmetafix.py index e6be255..5dfb2d7 100644 --- a/kindlecomicconverter/dualmetafix.py +++ b/kindlecomicconverter/dualmetafix.py @@ -24,6 +24,7 @@ import shutil class DualMetaFixException(Exception): pass + # palm database offset constants number_of_pdb_records = 76 first_pdb_record = 78 diff --git a/kindlecomicconverter/metadata.py b/kindlecomicconverter/metadata.py index df87340..62c7442 100644 --- a/kindlecomicconverter/metadata.py +++ b/kindlecomicconverter/metadata.py @@ -19,8 +19,6 @@ import os from xml.dom.minidom import parse, Document from re import compile -from subprocess import STDOUT, PIPE -from psutil import Popen from tempfile import mkdtemp from shutil import rmtree from . import comicarchive diff --git a/kindlecomicconverter/shared.py b/kindlecomicconverter/shared.py index 32f656c..4918a90 100644 --- a/kindlecomicconverter/shared.py +++ b/kindlecomicconverter/shared.py @@ -22,8 +22,6 @@ import os from hashlib import md5 from html.parser import HTMLParser from distutils.version import StrictVersion -from shutil import rmtree, copy -from tempfile import mkdtemp from re import split from traceback import format_tb @@ -49,8 +47,7 @@ class HTMLStripper(HTMLParser): def getImageFileName(imgfile): name, ext = os.path.splitext(imgfile) ext = ext.lower() - if name.startswith('.') or (ext != '.png' and ext != '.jpg' and ext != '.jpeg' and ext != '.gif' and - ext != '.webp'): + if name.startswith('.') or ext not in ['.png', '.jpg', '.jpeg', '.gif', '.webp']: return None return [name, ext] @@ -88,16 +85,17 @@ def md5Checksum(fpath): def sanitizeTrace(traceback): return ''.join(format_tb(traceback))\ - .replace('C:/projects/kcc/', '') \ - .replace('c:/projects/kcc/', '') \ - .replace('C:/python36-x64/', '')\ - .replace('c:/python36-x64/', '')\ - .replace('C:\\projects\\kcc\\', '') \ - .replace('c:\\projects\\kcc\\', '') \ - .replace('C:\\python36-x64\\', '')\ - .replace('c:\\python36-x64\\', '') + .replace('C:/projects/kcc/', '')\ + .replace('c:/projects/kcc/', '')\ + .replace('C:/python37-x64/', '')\ + .replace('c:/python37-x64/', '')\ + .replace('C:\\projects\\kcc\\', '')\ + .replace('c:\\projects\\kcc\\', '')\ + .replace('C:\\python37-x64\\', '')\ + .replace('c:\\python37-x64\\', '') +# noinspection PyUnresolvedReferences def dependencyCheck(level): missing = [] if level > 2: -- cgit 1.4.1 From 2070a977aefe9da8ceb2ab1d0e96f30f1d7050b6 Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Wed, 6 Mar 2019 10:56:44 +0100 Subject: Updated build enviroment --- .travis.yml | 4 ++-- README.md | 2 +- other/osx/Info.plist | 2 +- requirements.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/.travis.yml b/.travis.yml index eba8cca..27745c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,11 @@ matrix: include: - os: osx language: generic - osx_image: xcode6.4 + osx_image: xcode9.2 before_install: - brew update -- brew install python3 +- brew upgrade python3 - brew uninstall node - travis_wait 30 brew install node@6 - brew link node@6 --force --overwrite diff --git a/README.md b/README.md index 68c5311..0f8c30f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ If you find **KCC** valuable you can consider donating to the authors: ## BINARY RELEASES You can find the latest released binary at the following links: - **[Windows](http://kcc.iosphe.re/Windows/) (64-bit only)** -- **[macOS](http://kcc.iosphe.re/OSX/) (10.10+)** +- **[macOS](http://kcc.iosphe.re/OSX/) (10.12+)** - **Linux:** - [Ubuntu 17.10](http://kcc.iosphe.re/LinuxArtful/) - [Ubuntu 16.04 / Debian 9](http://kcc.iosphe.re/LinuxXenial/) diff --git a/other/osx/Info.plist b/other/osx/Info.plist index 4a9fa48..0b30fed 100644 --- a/other/osx/Info.plist +++ b/other/osx/Info.plist @@ -55,7 +55,7 @@ LSHasLocalizedDisplayName LSMinimumSystemVersion - 10.10.0 + 10.12.0 NSAppleScriptEnabled NSHumanReadableCopyright diff --git a/requirements.txt b/requirements.txt index 7b2f16c..355db43 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ PyQt5>=5.6.0 Pillow>=5.2.0 psutil>=5.0.0 -python-slugify>=1.2.1 +python-slugify>=1.2.1,<3.0.0 raven>=6.0.0 \ No newline at end of file -- cgit 1.4.1 From 7f719a22ad7c986dd074f15b08cbd621568e787c Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Wed, 6 Mar 2019 15:50:40 +0100 Subject: Added PW4 profile (close #293) --- LICENSE.txt | 2 +- README.md | 6 +++--- kcc-c2e.py | 2 +- kcc-c2p.py | 2 +- kcc.iss | 2 +- kcc.py | 2 +- kindlecomicconverter/KCC_gui.py | 6 +++--- kindlecomicconverter/image.py | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) (limited to 'README.md') diff --git a/LICENSE.txt b/LICENSE.txt index a060b54..a509747 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,7 +1,7 @@ ISC LICENSE Copyright (c) 2012-2014 Ciro Mattia Gonano -Copyright (c) 2013-2018 Paweł Jastrzębski +Copyright (c) 2013-2019 Paweł Jastrzębski Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the diff --git a/README.md b/README.md index 0f8c30f..bda3dd2 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ Options: -p PROFILE, --profile=PROFILE Device profile (Available options: K1, K2, K34, K578, KDX, KPW, KV, KO, KoMT, KoG, KoGHD, KoA, KoAHD, KoAH2O, - KoAO) [Default=KV] + KoAO, KoF) [Default=KV] -m, --manga-style Manga style (right-to-left reading and splitting) -q, --hq Try to increase the quality of magnification -2, --two-panel Display two not four panels in Panel View mode @@ -165,7 +165,7 @@ The app relies and includes the following scripts: ## SAMPLE FILES CREATED BY KCC * [Kindle Oasis 2](http://kcc.iosphe.re/Samples/Ubunchu!-KO.mobi) -* [Kindle Paperwhite 3 / Voyage / Oasis](http://kcc.iosphe.re/Samples/Ubunchu!-KV.mobi) +* [Kindle Paperwhite 3 / 4 / Voyage / Oasis](http://kcc.iosphe.re/Samples/Ubunchu!-KV.mobi) * [Kindle Paperwhite 1 / 2](http://kcc.iosphe.re/Samples/Ubunchu!-KPW.mobi) * [Kindle](http://kcc.iosphe.re/Samples/Ubunchu!-K578.mobi) * [Kobo Aura](http://kcc.iosphe.re/Samples/Ubunchu-KoA.kepub.epub) @@ -183,5 +183,5 @@ The app relies and includes the following scripts: Please check [wiki page](https://github.com/ciromattia/kcc/wiki/Known-issues). ## COPYRIGHT -Copyright (c) 2012-2018 Ciro Mattia Gonano and Paweł Jastrzębski. +Copyright (c) 2012-2019 Ciro Mattia Gonano and Paweł Jastrzębski. **KCC** is released under ISC LICENSE; see LICENSE.txt for further details. diff --git a/kcc-c2e.py b/kcc-c2e.py index 2400560..d2188a7 100755 --- a/kcc-c2e.py +++ b/kcc-c2e.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Copyright (c) 2012-2014 Ciro Mattia Gonano -# Copyright (c) 2013-2018 Pawel Jastrzebski +# Copyright (c) 2013-2019 Pawel Jastrzebski # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the diff --git a/kcc-c2p.py b/kcc-c2p.py index 4d5b1e1..b7c9892 100755 --- a/kcc-c2p.py +++ b/kcc-c2p.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Copyright (c) 2012-2014 Ciro Mattia Gonano -# Copyright (c) 2013-2018 Pawel Jastrzebski +# Copyright (c) 2013-2019 Pawel Jastrzebski # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the diff --git a/kcc.iss b/kcc.iss index 5caf5d6..ac4e92f 100644 --- a/kcc.iss +++ b/kcc.iss @@ -12,7 +12,7 @@ AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} -AppCopyright=Copyright (C) 2012-2018 Ciro Mattia Gonano and Paweł Jastrzębski +AppCopyright=Copyright (C) 2012-2019 Ciro Mattia Gonano and Paweł Jastrzębski ArchitecturesAllowed=x64 DefaultDirName={pf}\{#MyAppName} DefaultGroupName={#MyAppName} diff --git a/kcc.py b/kcc.py index 347a4ac..b05e8c1 100755 --- a/kcc.py +++ b/kcc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Copyright (c) 2012-2014 Ciro Mattia Gonano -# Copyright (c) 2013-2018 Pawel Jastrzebski +# Copyright (c) 2013-2019 Pawel Jastrzebski # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index f7c0776..91910be 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -912,8 +912,8 @@ class KCCGUI(KCC_ui.Ui_mainWindow): 'DefaultUpscale': True, 'Label': 'KV'}, "Kindle Voyage": {'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, 'DefaultUpscale': True, 'Label': 'KV'}, - "Kindle PW 3": {'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, - 'DefaultUpscale': True, 'Label': 'KV'}, + "Kindle PW 3/4": {'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, + 'DefaultUpscale': True, 'Label': 'KV'}, "Kindle PW 1/2": {'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, 'DefaultUpscale': False, 'Label': 'KPW'}, "Kindle": {'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, @@ -951,7 +951,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow): "Kindle Oasis 2", "Kindle Oasis", "Kindle Voyage", - "Kindle PW 3", + "Kindle PW 3/4", "Kindle PW 1/2", "Kindle", "Separator", diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 8ff95a7..6d44b4f 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -86,7 +86,7 @@ class ProfileData: 'K578': ("Kindle", (600, 800), Palette16, 1.8), 'KDX': ("Kindle DX/DXG", (824, 1000), Palette16, 1.8), 'KPW': ("Kindle Paperwhite 1/2", (758, 1024), Palette16, 1.8), - 'KV': ("Kindle Paperwhite 3/Voyage/Oasis", (1072, 1448), Palette16, 1.8), + 'KV': ("Kindle Paperwhite 3/4/Voyage/Oasis", (1072, 1448), Palette16, 1.8), 'KO': ("Kindle Oasis 2", (1264, 1680), Palette16, 1.8), 'KoMT': ("Kobo Mini/Touch", (600, 800), Palette16, 1.8), 'KoG': ("Kobo Glo", (768, 1024), Palette16, 1.8), -- cgit 1.4.1 From 409f077c3e88cb7a1cbd84ef252c8d18c8a5e9fb Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Wed, 6 Mar 2019 19:46:06 +0100 Subject: Bye, bye DEBs --- README.md | 20 ++++++++------------ kindlecomicconverter/KCC_gui.py | 2 +- kindlecomicconverter/image.py | 2 +- other/linux/kindlecomicconverter | 4 ---- other/linux/kindlecomicconverter.desktop | 11 ----------- other/linux/sentry.py.enc | Bin 176 -> 0 bytes setup.py | 18 +----------------- 7 files changed, 11 insertions(+), 46 deletions(-) delete mode 100644 other/linux/kindlecomicconverter delete mode 100644 other/linux/kindlecomicconverter.desktop delete mode 100644 other/linux/sentry.py.enc (limited to 'README.md') diff --git a/README.md b/README.md index bda3dd2..32836a4 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,7 @@ If you find **KCC** valuable you can consider donating to the authors: You can find the latest released binary at the following links: - **[Windows](http://kcc.iosphe.re/Windows/) (64-bit only)** - **[macOS](http://kcc.iosphe.re/OSX/) (10.12+)** -- **Linux:** - - [Ubuntu 17.10](http://kcc.iosphe.re/LinuxArtful/) - - [Ubuntu 16.04 / Debian 9](http://kcc.iosphe.re/LinuxXenial/) - - [Ubuntu 14.04 / Debian 8](http://kcc.iosphe.re/LinuxTrusty/) +- **Linux:** Currently unavailable. ## PYPI **KCC** is also available on PyPI. @@ -51,18 +48,17 @@ Following software is required to run Linux version of **KCC** and/or bare sourc On Debian based distributions these two commands should install all needed dependencies: ``` -sudo apt-get install python3 python3-dev python3-pip libpng-dev libjpeg-dev p7zip-full unrar +sudo apt-get install python3 python3-dev python3-pip libpng-dev libjpeg-dev p7zip-full sudo pip3 install --upgrade pillow python-slugify psutil pyqt5 raven ``` ### Optional dependencies - [KindleGen](http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211) v2.9+ in a directory reachable by your _PATH_ or in _KCC_ directory *(For MOBI generation)* -- [UnRAR](http://www.rarlab.com/download.htm) *(For CBR/RAR support)* -- [7za](http://www.7-zip.org/download.html) *(For 7z/CB7 support)* +- [7z](http://www.7-zip.org/download.html) *(For CBZ/ZIP, CBR/RAR, 7z/CB7 support)* ## INPUT FORMATS **KCC** can understand and convert, at the moment, the following input types: -- Folders containing: PNG, JPG or GIF files +- Folders containing: PNG, JPG, GIF or WebP files - CBZ, ZIP *(With `7z` executable)* - CBR, RAR *(With `7z` executable)* - CB7, 7Z *(With `7z` executable)* @@ -172,12 +168,12 @@ The app relies and includes the following scripts: * [Kobo Aura HD](http://kcc.iosphe.re/Samples/Ubunchu-KoAHD.kepub.epub) * [Kobo Aura H2O](http://kcc.iosphe.re/Samples/Ubunchu-KoAH2O.kepub.epub) * [Kobo Aura ONE](http://kcc.iosphe.re/Samples/Ubunchu-KoAO.kepub.epub) +* [Kobo Forma](http://kcc.iosphe.re/Samples/Ubunchu-KoF.kepub.epub) ## PRIVACY -**KCC** is initiating internet connections in three cases: -* During startup - Version check -* When MCD metadata are used - Cover download -* When error occurs - Automatic reporting +**KCC** is initiating internet connections in two cases: +* During startup - Version check. +* When error occurs - Automatic reporting on Windows and MacOS. ## KNOWN ISSUES Please check [wiki page](https://github.com/ciromattia/kcc/wiki/Known-issues). diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index bce06ed..7dcfbe6 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -957,8 +957,8 @@ class KCCGUI(KCC_ui.Ui_mainWindow): "Kindle PW 1/2", "Kindle", "Separator", - "Kobo Aura ONE", "Kobo Forma", + "Kobo Aura ONE", "Kobo Aura H2O", "Kobo Aura HD", "Kobo Aura", diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 0c26bf8..118ef3c 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -90,8 +90,8 @@ class ProfileData: 'KoA': ("Kobo Aura", (758, 1024), Palette16, 1.8), 'KoAHD': ("Kobo Aura HD", (1080, 1440), Palette16, 1.8), 'KoAH2O': ("Kobo Aura H2O", (1080, 1430), Palette16, 1.8), - 'KoF': ("Kobo Forma", (1440, 1920), Palette16, 1.8), 'KoAO': ("Kobo Aura ONE", (1404, 1872), Palette16, 1.8), + 'KoF': ("Kobo Forma", (1440, 1920), Palette16, 1.8), 'OTHER': ("Other", (0, 0), Palette16, 1.8), } diff --git a/other/linux/kindlecomicconverter b/other/linux/kindlecomicconverter deleted file mode 100644 index c9baf04..0000000 --- a/other/linux/kindlecomicconverter +++ /dev/null @@ -1,4 +0,0 @@ -kindlecomicconverter: binary-without-manpage usr/bin/kcc -kindlecomicconverter: wrong-name-for-changelog-of-native-package usr/share/doc/kindlecomicconverter/changelog.Debian.gz -kindlecomicconverter: file-missing-in-md5sums usr/share/doc/kindlecomicconverter/changelog.Debian.gz -kindlecomicconverter: hardening-no-relro usr/bin/kcc diff --git a/other/linux/kindlecomicconverter.desktop b/other/linux/kindlecomicconverter.desktop deleted file mode 100644 index 306468b..0000000 --- a/other/linux/kindlecomicconverter.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Type=Application -Version=1.0 -Name=Kindle Comic Converter -GenericName=Kindle Comic Converter -Comment=Comic and Manga converter for e-book readers -Icon=/usr/share/kindlecomicconverter/comic2ebook.png -Exec=/usr/bin/kcc %f -Terminal=false -Categories=Graphics; -MimeType=application/zip;application/x-rar;application/x-7z-compressed; diff --git a/other/linux/sentry.py.enc b/other/linux/sentry.py.enc deleted file mode 100644 index c38a68c..0000000 Binary files a/other/linux/sentry.py.enc and /dev/null differ diff --git a/setup.py b/setup.py index 182be17..7bc5c8d 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ pip/pyinstaller build script for KCC. Install as Python package: python3 setup.py install -Create EXE/APP/DEB: +Create EXE/APP: python3 setup.py build_binary """ @@ -49,22 +49,6 @@ class BuildBinaryCommand(distutils.cmd.Command): os.system('pyinstaller -y -F -i icons\\comic2ebook.ico -n KCC -w --noupx kcc.py') exit(0) else: - os.system('pyinstaller -y -F kcc.py') - os.system('mkdir -p dist/usr/bin dist/usr/share/applications dist/usr/share/doc/kindlecomicconverter ' - 'dist/usr/share/kindlecomicconverter dist/usr/share/lintian/overrides') - os.system('mv dist/kcc dist/usr/bin') - os.system('cp icons/comic2ebook.png dist/usr/share/kindlecomicconverter') - os.system('cp LICENSE.txt dist/usr/share/doc/kindlecomicconverter/copyright') - os.system('cp other/linux/kindlecomicconverter.desktop dist/usr/share/applications') - os.system('cp other/linux/kindlecomicconverter dist/usr/share/lintian/overrides') - os.chdir('dist') - os.system('fpm -f -s dir -t deb -n kindlecomicconverter -v ' + VERSION + - ' -m "Pawel Jastrzebski " --license "ISC" ' - '--description "$(printf "Comic and Manga converter for e-book ' - 'readers.\nThis app allows you to transform your PNG, JPG, GIF, ' - 'CBZ, CBR and CB7 files\ninto EPUB or MOBI format e-books.")" ' - '--url "https://kcc.iosphe.re/" --deb-priority "optional" --vendor "" ' - '--category "graphics" -d "p7zip-full" -d "p7zip-rar" -d "libc6" usr') exit(0) -- cgit 1.4.1