1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-28 07:57:41 +00:00

Added Linux build script

This commit is contained in:
Paweł Jastrzębski
2013-11-07 22:53:28 +01:00
parent 0789e7a353
commit 6d9e2d3c03
2 changed files with 16 additions and 11 deletions

12
setup.sh Normal file
View File

@@ -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