Skip to content

Commit

Permalink
Fix cf-freeze build options
Browse files Browse the repository at this point in the history
Add upgrade_code to remove previous version before installing new one.
  • Loading branch information
aokumasan committed May 22, 2024
1 parent 73ffbcc commit ea1a7d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
from cx_Freeze import Executable, setup
from setuptools import find_packages

if 'bdist_msi' in sys.argv:
sys.argv += ['--add-to-path', 'True', '--skip-build']

build_exe_options = {
"includes": ["awscli", "html.parser"],
"packages": ["docutils"],
"excludes": ["awscli.examples", "botocore.data"],
}
cx_freeze_opts = {
build_msi_options = {
"add_to_path": True,
"skip_build": True,
"options": {"build_exe": build_exe_options},
"upgrade_code": "{799865ae-6f18-4e1a-a396-2ee83b6b46a8}",
}
cx_freeze_opts = {
"options": {"build_exe": build_exe_options, "bdist_msi": build_msi_options},
"executables": [Executable("bin/nifcloud", icon="assets/icon.ico")],
}
else:
Expand Down

0 comments on commit ea1a7d8

Please sign in to comment.