mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 18:56:28 +00:00
Build tweaks
This commit is contained in:
@@ -6,7 +6,7 @@ MAINTAINER Paweł Jastrzębski <pawelj@iosphe.re>
|
|||||||
ENV KCCVER 4.6.5
|
ENV KCCVER 4.6.5
|
||||||
ADD . /app
|
ADD . /app
|
||||||
|
|
||||||
RUN pip3 install pillow python-slugify psutil scandir https://github.com/pyinstaller/pyinstaller/archive/develop.zip
|
RUN pip3 install pillow python-slugify psutil scandir pyinstaller
|
||||||
RUN gem install fpm
|
RUN gem install fpm
|
||||||
RUN useradd -ms /bin/bash kcc && chown -R kcc:kcc /app
|
RUN useradd -ms /bin/bash kcc && chown -R kcc:kcc /app
|
||||||
|
|
||||||
@@ -17,8 +17,8 @@ RUN mkdir -p dist/usr/bin dist/usr/share/applications dist/usr/share/doc/kindlec
|
|||||||
RUN mv dist/kcc dist/usr/bin
|
RUN mv dist/kcc dist/usr/bin
|
||||||
RUN cp icons/comic2ebook.png dist/usr/share/kindlecomicconverter
|
RUN cp icons/comic2ebook.png dist/usr/share/kindlecomicconverter
|
||||||
RUN cp LICENSE.txt dist/usr/share/doc/kindlecomicconverter/copyright
|
RUN cp LICENSE.txt dist/usr/share/doc/kindlecomicconverter/copyright
|
||||||
RUN cp other/kindlecomicconverter.desktop dist/usr/share/applications
|
RUN cp other/linux/kindlecomicconverter.desktop dist/usr/share/applications
|
||||||
RUN cp other/kindlecomicconverter dist/usr/share/lintian/overrides
|
RUN cp other/linux/kindlecomicconverter dist/usr/share/lintian/overrides
|
||||||
|
|
||||||
WORKDIR /app/dist
|
WORKDIR /app/dist
|
||||||
RUN fpm -f -s dir -t deb -n kindlecomicconverter -v $KCCVER -m "Paweł Jastrzębski <pawelj@iosphe.re>" --license "ISC" --description "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 "unrar | unrar-free" -d "p7zip-full" usr
|
RUN fpm -f -s dir -t deb -n kindlecomicconverter -v $KCCVER -m "Paweł Jastrzębski <pawelj@iosphe.re>" --license "ISC" --description "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 "unrar | unrar-free" -d "p7zip-full" usr
|
||||||
|
|||||||
@@ -153,10 +153,10 @@ def dependencyCheck(level):
|
|||||||
if level > 1:
|
if level > 1:
|
||||||
try:
|
try:
|
||||||
from psutil import __version__ as psutilVersion
|
from psutil import __version__ as psutilVersion
|
||||||
if StrictVersion('3.2.1') > StrictVersion(psutilVersion):
|
if StrictVersion('3.2.2') > StrictVersion(psutilVersion):
|
||||||
missing.append('psutil 3.2.1+')
|
missing.append('psutil 3.2.2+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('psutil 3.2.1+')
|
missing.append('psutil 3.2.2+')
|
||||||
try:
|
try:
|
||||||
from slugify import __version__ as slugifyVersion
|
from slugify import __version__ as slugifyVersion
|
||||||
if StrictVersion('1.1.4') > StrictVersion(slugifyVersion):
|
if StrictVersion('1.1.4') > StrictVersion(slugifyVersion):
|
||||||
|
|||||||
@@ -6,27 +6,6 @@
|
|||||||
<string>English</string>
|
<string>English</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>Kindle Comic Converter</string>
|
<string>Kindle Comic Converter</string>
|
||||||
<key>CFBundleDocumentTypes</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleTypeExtensions</key>
|
|
||||||
<array>
|
|
||||||
<string>cbz</string>
|
|
||||||
<string>cbr</string>
|
|
||||||
<string>cb7</string>
|
|
||||||
<string>zip</string>
|
|
||||||
<string>rar</string>
|
|
||||||
<string>7z</string>
|
|
||||||
<string>pdf</string>
|
|
||||||
</array>
|
|
||||||
<key>CFBundleTypeIconFile</key>
|
|
||||||
<string>comic2ebook.icns</string>
|
|
||||||
<key>CFBundleTypeName</key>
|
|
||||||
<string>Comics</string>
|
|
||||||
<key>CFBundleTypeRole</key>
|
|
||||||
<string>Editor</string>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>MacOS/Kindle Comic Converter</string>
|
<string>MacOS/Kindle Comic Converter</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
@@ -55,7 +34,7 @@
|
|||||||
<key>LSHasLocalizedDisplayName</key>
|
<key>LSHasLocalizedDisplayName</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.8.0</string>
|
<string>10.9.0</string>
|
||||||
<key>NSAppleScriptEnabled</key>
|
<key>NSAppleScriptEnabled</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -47,7 +47,7 @@ class BuildBinaryCommand(distutils.cmd.Command):
|
|||||||
os.chmod('dist/Kindle Comic Converter.app/Contents/Resources/unrar', 0o777)
|
os.chmod('dist/Kindle Comic Converter.app/Contents/Resources/unrar', 0o777)
|
||||||
os.chmod('dist/Kindle Comic Converter.app/Contents/Resources/7za', 0o777)
|
os.chmod('dist/Kindle Comic Converter.app/Contents/Resources/7za', 0o777)
|
||||||
if os.path.isfile('setup.sh'):
|
if os.path.isfile('setup.sh'):
|
||||||
os.system('setup.sh')
|
os.system('./setup.sh')
|
||||||
os.system('appdmg kcc.json dist/KindleComicConverter_osx_' + VERSION + '.dmg')
|
os.system('appdmg kcc.json dist/KindleComicConverter_osx_' + VERSION + '.dmg')
|
||||||
exit(0)
|
exit(0)
|
||||||
elif sys.platform == 'win32':
|
elif sys.platform == 'win32':
|
||||||
@@ -109,7 +109,7 @@ class BuildCommand(build):
|
|||||||
packages=['kcc'],
|
packages=['kcc'],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'Pillow>=3.0.0',
|
'Pillow>=3.0.0',
|
||||||
'psutil>=3.2.1',
|
'psutil>=3.2.2',
|
||||||
'python-slugify>=1.1.4',
|
'python-slugify>=1.1.4',
|
||||||
],
|
],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user