Skip to content

Commit e3c4ba3

Browse files
committed
Fixed building
1 parent fd405e9 commit e3c4ba3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

build.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if "%release_type%"=="--debug" (
1313
)
1414

1515
echo debug> release_type.txt
16-
python -m PyInstaller --noconfirm --clean build.spec
16+
py -3.12 -m PyInstaller --noconfirm --clean build.spec
1717
del release_type.txt
1818
) else (
1919
if "%release_type%"=="--release" (
@@ -27,7 +27,7 @@ if "%release_type%"=="--debug" (
2727
)
2828

2929
echo release> release_type.txt
30-
python -m PyInstaller --noconfirm --clean build.spec
30+
py -3.12 -m PyInstaller --noconfirm --clean build.spec
3131
del release_type.txt
3232
) else (
3333
echo Invalid release type

build.spec

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ main_datas = [
2525
]
2626
main_hiddenimports = ["PIL", "PIL._imagingtk", "PIL._tkinter_finder", "pkg_resources.extern"]
2727

28-
main_a = Analysis(
29-
['main.py'],
28+
main_a = Analysis( # type: ignore
29+
['src/main.py'],
3030
pathex=[],
3131
binaries=[],
3232
datas=main_datas,
@@ -37,8 +37,8 @@ main_a = Analysis(
3737
excludes=[],
3838
noarchive=False,
3939
)
40-
main_pyz = PYZ(main_a.pure)
41-
main_exe = EXE(
40+
main_pyz = PYZ(main_a.pure) # type: ignore
41+
main_exe = EXE( # type: ignore
4242
main_pyz,
4343
main_a.scripts,
4444
[],
@@ -59,7 +59,7 @@ main_exe = EXE(
5959

6060
py3dst_hiddenimports = ["PIL", "PIL._imagingtk", "PIL._tkinter_finder", "pkg_resources.extern"]
6161

62-
py3dst_a = Analysis(
62+
py3dst_a = Analysis( # type: ignore
6363
['py3dstViewer.py'],
6464
pathex=[],
6565
binaries=[],
@@ -71,8 +71,8 @@ py3dst_a = Analysis(
7171
excludes=[],
7272
noarchive=False,
7373
)
74-
py3dst_pyz = PYZ(py3dst_a.pure)
75-
py3dst_exe = EXE(
74+
py3dst_pyz = PYZ(py3dst_a.pure) # type: ignore
75+
py3dst_exe = EXE( # type: ignore
7676
py3dst_pyz,
7777
py3dst_a.scripts,
7878
[],
@@ -91,7 +91,7 @@ py3dst_exe = EXE(
9191
icon='./icon_viewer.ico'
9292
)
9393

94-
coll = COLLECT(
94+
coll = COLLECT( # type: ignore
9595
main_exe,
9696
main_a.binaries,
9797
main_a.datas,

0 commit comments

Comments
 (0)