mirror of
https://github.com/drizzt/3ds-to-cia.git
synced 2026-04-26 10:15:29 -05:00
Add 3ds-to-cia.spec
This commit is contained in:
parent
45c330a8fd
commit
8acb610be7
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
40
3ds-to-cia.spec
Normal 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 )
|
||||
Loading…
Reference in New Issue
Block a user