mirror of
https://github.com/ciromattia/kcc
synced 2026-06-02 20:53:28 +00:00
Added Linux build script
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env python2
|
||||||
"""
|
"""
|
||||||
cx_Freeze build script for KCC.
|
cx_Freeze build script for KCC.
|
||||||
|
|
||||||
@@ -67,18 +68,10 @@ elif platform == "win32":
|
|||||||
appendScriptToLibrary=False,
|
appendScriptToLibrary=False,
|
||||||
compress=True)])
|
compress=True)])
|
||||||
else:
|
else:
|
||||||
from cx_Freeze import setup, Executable
|
print 'Please use setup.sh to build Linux package.'
|
||||||
extra_options = dict(
|
exit()
|
||||||
options={"build_exe": {"include_files": ['LICENSE.txt',
|
|
||||||
['other/Additional-LICENSE.txt', 'Additional-LICENSE.txt']
|
|
||||||
], "compressed": True}},
|
|
||||||
executables=[Executable(MAIN,
|
|
||||||
icon="icons/comic2ebook.png",
|
|
||||||
copyDependentFiles=True,
|
|
||||||
appendScriptToExe=True,
|
|
||||||
appendScriptToLibrary=False,
|
|
||||||
compress=True)])
|
|
||||||
|
|
||||||
|
#noinspection PyUnboundLocalVariable
|
||||||
setup(
|
setup(
|
||||||
name=NAME,
|
name=NAME,
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Linux Python package build script
|
||||||
|
|
||||||
|
VERSION="3.5"
|
||||||
|
|
||||||
|
cp kcc.py __main__.py
|
||||||
|
zip kcc.zip __main__.py kcc/*.py
|
||||||
|
echo "#!/usr/bin/env python2" > kcc-bin
|
||||||
|
cat kcc.zip >> kcc-bin
|
||||||
|
chmod +x kcc-bin
|
||||||
|
tar --xform s:^.*/:: --xform s/kcc-bin/kcc/ --xform s/comic2ebook/kcc/ -czf KindleComicConverter_linux_$VERSION.tar.gz kcc-bin LICENSE.txt icons/comic2ebook.png
|
||||||
|
rm __main__.py kcc.zip kcc-bin
|
||||||
Reference in New Issue
Block a user