Skip to content

Commit

Permalink
Prep for #4 build
Browse files Browse the repository at this point in the history
rename `backend_cli.py` to `cli.py`
create `setup.cli.py` for building

Also: TYSM @juraj-hrivnak  for actually giving me the task ( I feel lonely sometimes )
Co-Authored-By: Juraj Hrivnák <[email protected]>
  • Loading branch information
Advik-B and juraj-hrivnak committed Feb 4, 2022
1 parent cddca52 commit e20f5fc
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
File renamed without changes.
45 changes: 45 additions & 0 deletions src/setup.cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
# "packages": ["os"] is used as example only
build_exe_options = {
"packages": [
"os",
'cursepy',
'urllib',
'clint',
'time',
'zipfile',
'tempfile',
'json',
'shutil',
'requests',
'click',
'datetime',
'termcolor',

],
"excludes": [

'tkinter',
],

"include_msvcr": True,

}

# base = "Win32GUI" if sys.platform == "win32" else None

setup(
name = "CMPDL",
version = "2.5",
description = "Cuseforge Modpack DownLoader",
options = {"build_exe": build_exe_options,},
executables = [
Executable(
"cli.py",
# base=base,
icon='assets/icon.ico'
)
]
)

0 comments on commit e20f5fc

Please sign in to comment.