mirror of
https://github.com/ihaveamac/custom-install.git
synced 2025-12-05 22:31:45 +00:00
use setup script to build cx-freeze standalone
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
mkdir build
|
mkdir build
|
||||||
mkdir dist
|
mkdir dist
|
||||||
cxfreeze ci-gui.py --target-dir=build\custom-install-standalone --base-name=Win32GUI
|
python setup-cxfreeze.py build_exe --build-exe=build\custom-install-standalone
|
||||||
mkdir build\custom-install-standalone\bin
|
mkdir build\custom-install-standalone\bin
|
||||||
copy TaskbarLib.tlb build\custom-install-standalone
|
copy TaskbarLib.tlb build\custom-install-standalone
|
||||||
copy bin\win32\save3ds_fuse.exe build\custom-install-standalone\bin
|
copy bin\win32\save3ds_fuse.exe build\custom-install-standalone\bin
|
||||||
@@ -8,5 +8,6 @@ copy bin\README build\custom-install-standalone\bin
|
|||||||
copy custom-install-finalize.3dsx build\custom-install-standalone
|
copy custom-install-finalize.3dsx build\custom-install-standalone
|
||||||
copy title.db.gz build\custom-install-standalone
|
copy title.db.gz build\custom-install-standalone
|
||||||
copy extras\windows-quickstart.txt build\custom-install-standalone
|
copy extras\windows-quickstart.txt build\custom-install-standalone
|
||||||
|
copy extras\run_with_cmd.bat build\custom-install-standalone
|
||||||
copy LICENSE.md build\custom-install-standalone
|
copy LICENSE.md build\custom-install-standalone
|
||||||
python -m zipfile -c dist\custom-install-standalone.zip build\custom-install-standalone
|
python -m zipfile -c dist\custom-install-standalone.zip build\custom-install-standalone
|
||||||
|
|||||||
19
setup-cxfreeze.py
Normal file
19
setup-cxfreeze.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import sys
|
||||||
|
from cx_Freeze import setup, Executable
|
||||||
|
|
||||||
|
if sys.platform == 'win32':
|
||||||
|
executables = [
|
||||||
|
Executable('ci-gui.py', target_name='ci-gui-console'),
|
||||||
|
Executable('ci-gui.py', target_name='ci-gui', base='Win32GUI'),
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
executables = [
|
||||||
|
Executable('ci-gui.py', target_name='ci-gui'),
|
||||||
|
]
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name = "ci-gui",
|
||||||
|
version = "2.1b4",
|
||||||
|
description = "Installs a title directly to an SD card for the Nintendo 3DS",
|
||||||
|
executables = executables
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user