mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-08-07 04:56:22 -07:00
Setup: bump cx-Freeze to fix frozen linux shortcuts (#6365)
This commit is contained in:
@@ -22,7 +22,7 @@ SNI_VERSION = "v0.0.100" # change back to "latest" once tray icon issues are fi
|
||||
|
||||
|
||||
# This is a bit jank. We need cx-Freeze to be able to run anything from this script, so install it
|
||||
requirement = 'cx-Freeze==8.4.0'
|
||||
requirement = "cx-Freeze==8.6.4"
|
||||
try:
|
||||
import pkg_resources
|
||||
try:
|
||||
@@ -41,9 +41,9 @@ if install_cx_freeze:
|
||||
except ImportError:
|
||||
raise RuntimeError("pip not available. Please install pip.")
|
||||
# install and import cx_freeze
|
||||
if '--yes' not in sys.argv and '-y' not in sys.argv:
|
||||
input(f'Requirement {requirement} is not satisfied, press enter to install it')
|
||||
subprocess.call([sys.executable, '-m', 'pip', 'install', requirement, '--upgrade'])
|
||||
if "--yes" not in sys.argv and "-y" not in sys.argv:
|
||||
input(f"Requirement {requirement} is not satisfied, press enter to install it")
|
||||
subprocess.call([sys.executable, "-m", "pip", "install", requirement, "-c", "setup_constraints.txt"])
|
||||
import pkg_resources
|
||||
|
||||
import cx_Freeze
|
||||
@@ -188,7 +188,7 @@ exes = [
|
||||
script=f"{c.script_name}.py",
|
||||
target_name=c.frozen_name + (".exe" if is_windows else ""),
|
||||
icon=resolve_icon(c.icon),
|
||||
base="Win32GUI" if is_windows and not c.cli else None
|
||||
base="gui" if is_windows and not c.cli else None
|
||||
) for c in components if c.script_name and c.frozen_name
|
||||
]
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
setuptools>=75,<81
|
||||
Reference in New Issue
Block a user