linux install stuff
This commit is contained in:
parent
ad3bc796c0
commit
529dd00096
2 changed files with 27 additions and 15 deletions
0
linux_pesterchum.sh
Normal file → Executable file
0
linux_pesterchum.sh
Normal file → Executable file
42
setup.py
42
setup.py
|
@ -1,6 +1,7 @@
|
||||||
from cx_Freeze import setup, Executable
|
from cx_Freeze import setup, Executable
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import os.path
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
@ -19,21 +20,32 @@ setup(
|
||||||
)])
|
)])
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
os.rename("build/exe.win32-2.6", "build/pesterchum")
|
os.rename("build/exe.win32-2.6", "build/pesterchum")
|
||||||
|
pcloc = "build/pesterchum"
|
||||||
else:
|
else:
|
||||||
os.rename("build/exe.linux-x86_64-2.6", "build/pesterchum")
|
os.mkdir("build/pesterchum")
|
||||||
|
if os.path.exists("build/exe.linux-x86_64-2.6"):
|
||||||
|
os.rename("build/exe.linux-x86_64-2.6", "build/pesterchum/pesterchum3.14")
|
||||||
|
else:
|
||||||
|
os.rename("build/exe.linux-i686-2.6", "build/pesterchum/pesterchum3.14")
|
||||||
|
pcloc = "build/pesterchum/pesterchum3.14"
|
||||||
|
|
||||||
shutil.copytree("themes", "build/pesterchum/themes")
|
shutil.copytree("themes", "%s/themes" % (pcloc))
|
||||||
#shutil.copytree("imageformats", "build/pesterchum/imageformats")
|
#shutil.copytree("imageformats", "%s/imageformats" % (pcloc))
|
||||||
shutil.copytree("smilies", "build/pesterchum/smilies")
|
shutil.copytree("smilies", "%s/smilies" % (pcloc))
|
||||||
shutil.copy("pesterchum.js", "build/pesterchum/")
|
f = open("%s/pesterchum.js" % (pcloc), 'w')
|
||||||
#shutil.copy("C:/Dev/Py26MSdlls-9.0.21022.8/msvc/msvcm90.dll", "build/pesterchum")
|
f.write("{\"tabs\":true, \"chums\":[]}")
|
||||||
#shutil.copy("C:/Dev/Py26MSdlls-9.0.21022.8/msvc/msvcp90.dll", "build/pesterchum")
|
f.close()
|
||||||
#shutil.copy("C:/Dev/Py26MSdlls-9.0.21022.8/msvc/msvcr90.dll", "build/pesterchum")
|
#shutil.copy("C:/Dev/Py26MSdlls-9.0.21022.8/msvc/msvcm90.dll", "%s" % (pcloc))
|
||||||
|
#shutil.copy("C:/Dev/Py26MSdlls-9.0.21022.8/msvc/msvcp90.dll", "%s" % (pcloc))
|
||||||
|
#shutil.copy("C:/Dev/Py26MSdlls-9.0.21022.8/msvc/msvcr90.dll", "%s" % (pcloc))
|
||||||
#shutil.copy("C:/Dev/Py26MSdlls-9.0.21022.8/msvc/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375.manifest",
|
#shutil.copy("C:/Dev/Py26MSdlls-9.0.21022.8/msvc/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375.manifest",
|
||||||
# "build/pesterchum")
|
# "%s" % (pcloc))
|
||||||
#shutil.copy("pesterchum.nsi", "build/pesterchum/")
|
#shutil.copy("pesterchum.nsi", "%s/" % (pcloc))
|
||||||
#shutil.copy("pesterchum-update.nsi", "build/pesterchum/")
|
#shutil.copy("pesterchum-update.nsi", "%s/ % (pcloc)")
|
||||||
os.mkdir("build/pesterchum/profiles")
|
os.mkdir("%s/profiles" % (pcloc))
|
||||||
os.mkdir("build/pesterchum/logs")
|
os.mkdir("%s/logs" % (pcloc))
|
||||||
shutil.copy("logs/chums.js", "build/pesterchum/logs")
|
shutil.copy("logs/chums.js", "%s/logs" % (pcloc))
|
||||||
shutil.copy("readme.txt", "build/pesterchum/")
|
shutil.copy("readme.txt", "%s/" % (pcloc))
|
||||||
|
shutil.copy("themes.txt", "%s/" % (pcloc))
|
||||||
|
shutil.copy("linux_pesterchum.sh", "build/pesterchum/pesterchum")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue