Update freeze.py to update and not install again on windows to fix #297
This commit is contained in:
parent
da4163ced7
commit
340aceb870
24
freeze.py
24
freeze.py
|
@ -2,6 +2,10 @@ from cx_Freeze import setup, Executable
|
||||||
|
|
||||||
from rare import __version__
|
from rare import __version__
|
||||||
|
|
||||||
|
name = 'Rare'
|
||||||
|
author = 'Dummerle'
|
||||||
|
description = 'A GUI for Legendary'
|
||||||
|
|
||||||
shortcut_table = [
|
shortcut_table = [
|
||||||
("DesktopShortcut", # Shortcut
|
("DesktopShortcut", # Shortcut
|
||||||
"DesktopFolder", # Directory_
|
"DesktopFolder", # Directory_
|
||||||
|
@ -19,17 +23,25 @@ shortcut_table = [
|
||||||
]
|
]
|
||||||
|
|
||||||
msi_data = {"Shortcut": shortcut_table}
|
msi_data = {"Shortcut": shortcut_table}
|
||||||
bdist_msi_options = {'data': msi_data}
|
bdist_msi_options = {
|
||||||
|
'data': msi_data,
|
||||||
|
# generated with str(uuid.uuid3(uuid.NAMESPACE_DNS, 'io.github.dummerle.rare')).upper()
|
||||||
|
'upgrade_code': '{85D9FCC2-733E-3D74-8DD4-8FE33A07ADF8}'
|
||||||
|
}
|
||||||
base = "Win32GUI"
|
base = "Win32GUI"
|
||||||
|
|
||||||
|
exe = Executable(
|
||||||
|
"rare/__main__.py",
|
||||||
|
base=base, icon="rare/resources/images/Rare.ico",
|
||||||
|
target_name="Rare")
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="Rare",
|
name=name,
|
||||||
version=__version__,
|
version=__version__,
|
||||||
description="A GUI for Legendary",
|
author=author,
|
||||||
|
description=description,
|
||||||
options={
|
options={
|
||||||
"bdist_msi": bdist_msi_options,
|
"bdist_msi": bdist_msi_options,
|
||||||
},
|
},
|
||||||
executables=[Executable("rare/__main__.py",
|
executables=[exe]
|
||||||
base=base, icon="rare/resources/images/Rare.ico",
|
|
||||||
target_name="Rare")]
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue