1.4버전 수정
This commit is contained in:
parent
0515ccc524
commit
65a1c85faa
Binary file not shown.
24
build.py
24
build.py
|
|
@ -1,6 +1,9 @@
|
|||
import shutil
|
||||
import os
|
||||
from subprocess import call
|
||||
import subprocess
|
||||
|
||||
# 가상 환경 경로 (필요에 따라 변경)
|
||||
venv_path = os.path.join(os.getcwd(), 'venv')
|
||||
|
||||
# 삭제할 디렉토리 목록
|
||||
folders_to_delete = ['build', 'dist']
|
||||
|
|
@ -11,7 +14,18 @@ for folder in folders_to_delete:
|
|||
shutil.rmtree(folder)
|
||||
print(f"{folder} 폴더를 삭제했습니다.")
|
||||
|
||||
# PyInstaller 명령 실행
|
||||
# 여기에서 'your_script.py'를 실제 빌드하고자 하는 스크립트의 이름으로 바꿔주세요.
|
||||
# 추가 PyInstaller 옵션이 필요한 경우 이 부분에 추가합니다.
|
||||
call(['pyinstaller', 'taomanXLS.spec'])
|
||||
# 가상 환경 활성화 및 cx_Freeze 빌드 실행
|
||||
try:
|
||||
if os.name == 'nt': # Windows
|
||||
activate_script = os.path.join(venv_path, 'Scripts', 'activate.bat')
|
||||
# cmd 명령어를 통해 가상 환경 활성화 후 setup.py 빌드 실행
|
||||
command = f'cmd /c "{activate_script} && python setup.py build"'
|
||||
result = subprocess.run(command, shell=True, check=True)
|
||||
print(result)
|
||||
else: # Linux/Mac
|
||||
activate_script = os.path.join(venv_path, 'bin', 'activate')
|
||||
command = f'/bin/bash -c "source {activate_script} && python setup.py build"'
|
||||
subprocess.run(command, shell=True, check=True)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
|
|
|
|||
Binary file not shown.
2
setup.py
2
setup.py
|
|
@ -17,7 +17,7 @@ if sys.platform == "win32":
|
|||
|
||||
setup(
|
||||
name="taomanXLS",
|
||||
version="1.2",
|
||||
version="1.3",
|
||||
description="Taoman_to_PercentyXLS",
|
||||
options={"build_exe": build_exe_options},
|
||||
executables=[Executable("taomanXLS.py", base=base, icon="taomanXLS.ico")]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[Setup]
|
||||
; 기본 설정
|
||||
; 기본 ?¤ì •
|
||||
AppName=TaomanXLS
|
||||
AppVersion=1.1
|
||||
AppVersion=1.4
|
||||
DefaultDirName={pf}\TaomanXLS
|
||||
DefaultGroupName=TaomanXLS
|
||||
OutputBaseFilename=TaomanXLSInstaller
|
||||
|
|
@ -15,8 +15,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
|
|||
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
|
||||
; cx_Freezeë¡??<3F>성???Œì<C592>¼??모ë‘<C3AB> ?¬í•¨
|
||||
Source: "build\exe.win-amd64-3.7\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\TaomanXLS"; Filename: "{app}\taomanXLS.exe"; WorkingDir: "{app}"
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class ExportThread(QThread):
|
|||
if self.shuffle_title:
|
||||
chunk['상품명'] = chunk['상품명'].apply(self.shuffle_title_words)
|
||||
|
||||
output_file = os.path.join(self.output_folder, f"percenty-{i//chunk_size + 1:02d}_{self.original_file_name}")
|
||||
output_file = os.path.join(self.output_folder, f"{self.original_file_name}_percenty-{i//chunk_size + 1:02d}")
|
||||
|
||||
# Create a DataFrame with exactly 50 rows, filling with empty values if necessary
|
||||
if len(chunk) < chunk_size:
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue