Skip to content

Commit

Permalink
Merge pull request #40 from nifcloud/fix-cxfreeze
Browse files Browse the repository at this point in the history
Fix cxfreeze options
  • Loading branch information
tunakyonn committed May 24, 2024
2 parents 246e900 + ea1a7d8 commit 1d1abcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ nifcloud-cli = {editable = true, path = "."}
[dev-packages]
isort = "*"
"flake8" = "*"
cx-freeze = "==6.15.0"
cx-freeze = "==6.15.16"
sphinx = {version = "==5.3.0", sys_platform = "!= 'win32'"}
sphinx-rtd-theme = {version = "*", sys_platform = "!= 'win32'"}
pytest = "*"
Expand Down
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 1d1abcb

Please sign in to comment.