cz_freeze로 패킹 포함
This commit is contained in:
parent
97dd188666
commit
529dd01908
|
|
@ -7,4 +7,5 @@ Include/
|
|||
__pycache__/
|
||||
*.log
|
||||
*.log.*
|
||||
pyvenv.cfg
|
||||
pyvenv.cfg
|
||||
Output/
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
import sys
|
||||
from cx_Freeze import setup, Executable
|
||||
|
||||
# Add options for build_exe
|
||||
build_exe_options = {
|
||||
"packages": ["os", "pandas", "xlwings", "configparser", "PyQt5"],
|
||||
"include_files": [
|
||||
("퍼센티양식.xlsx", "퍼센티양식.xlsx"),
|
||||
("config.ini", "config.ini"),
|
||||
],
|
||||
}
|
||||
|
||||
# GUI applications require a different base on Windows (the default is for a console application).
|
||||
base = None
|
||||
if sys.platform == "win32":
|
||||
base = "Win32GUI"
|
||||
|
||||
setup(
|
||||
name="taomanXLS",
|
||||
version="1.1",
|
||||
description="Taoman_to_PercentyXLS",
|
||||
options={"build_exe": build_exe_options},
|
||||
executables=[Executable("taomanXLS.py", base=base, icon="taomanXLS.ico")]
|
||||
)
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
[Setup]
|
||||
; 기본 설정
|
||||
AppName=TaomanXLS
|
||||
AppVersion=1.0
|
||||
DefaultDirName={pf}\TaomanXLS
|
||||
DefaultGroupName=TaomanXLS
|
||||
OutputBaseFilename=TaomanXLSInstaller
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
[Files]
|
||||
; cx_Freeze로 생성한 파일을 모두 포함
|
||||
Source: "build\exe.win-amd64-3.11\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\TaomanXLS"; Filename: "{app}\main.exe"; WorkingDir: "{app}"
|
||||
Name: "{group}\{cm:UninstallProgram,TaomanXLS}"; Filename: "{uninstallexe}"
|
||||
Name: "{commondesktop}\TaomanXLS"; Filename: "{app}\main.exe"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\main.exe"; Description: "{cm:LaunchProgram,TaomanXLS}"; Flags: nowait postinstall skipifsilent
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 91 KiB |
|
|
@ -1,50 +1,44 @@
|
|||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
block_cipher = None
|
||||
|
||||
a = Analysis(
|
||||
['main.py'], # main.py 대신 여러분의 메인 파일 이름을 입력하세요.
|
||||
pathex=['.'],
|
||||
['taomanXLS.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[
|
||||
('퍼센티양식.xlsx', '.'), # 퍼센티양식.xlsx 파일을 포함합니다.
|
||||
('config.ini', '.'), # config.ini 파일을 포함합니다.
|
||||
],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False,
|
||||
optimize=0,
|
||||
)
|
||||
|
||||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
||||
pyz = PYZ(a.pure)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
[],
|
||||
exclude_binaries=True,
|
||||
name='ExcelProcessorApp',
|
||||
name='taomanXLS',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
runtime_tmpdir=None,
|
||||
console=False # GUI 프로그램이므로 console을 False로 설정합니다.
|
||||
console=False,
|
||||
disable_windowed_traceback=False,
|
||||
argv_emulation=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
)
|
||||
|
||||
coll = COLLECT(
|
||||
exe,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx=False,
|
||||
upx_exclude=[],
|
||||
name='ExcelProcessorApp'
|
||||
name='taomanXLS',
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue