Add 3ds-to-cia.spec

This commit is contained in:
Timothy Redaelli 2016-04-21 21:46:36 +02:00
parent 45c330a8fd
commit 8acb610be7
2 changed files with 40 additions and 1 deletions

1
.gitignore vendored
View File

@ -28,7 +28,6 @@ var/
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt

40
3ds-to-cia.spec Normal file
View File

@ -0,0 +1,40 @@
# -*- mode: python -*-
import sys
import platform
def get_tools_path():
bits = "64" if platform.machine().endswith("64") else "32"
if sys.platform == "win32":
return os.path.join("tools", "win32")
elif sys.platform == "linux" or sys.platform == "linux2":
return os.path.join("tools", "linux" + bits)
print "Sorry, your OS is not supported yet."
sys.exit(1)
block_cipher = None
a = Analysis(['3ds-to-cia.py'],
binaries=[(get_tools_path(), get_tools_path())],
datas=None,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='3ds-to-cia',
debug=False,
strip=False,
upx=True,
console=True )