-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_exe.cmd
executable file
·31 lines (31 loc) · 1.04 KB
/
build_exe.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
echo Cleaning up...
python setup.py clean --all
if %ERRORLEVEL% neq 0 (
echo [Error] Cleaning failed. Exiting...
exit /b %ERRORLEVEL%
)
echo Building extension...
python setup.py build_ext --inplace
if %ERRORLEVEL% neq 0 (
echo [Error] Building extension failed. Exiting...
exit /b %ERRORLEVEL%
)
echo Building exe...
pyinstaller --onefile --clean --name ercha --icon=assets/ercha.ico --hidden-import ercha.cli --hidden-import ercha.rch --hidden-import ercha.lzw --hidden-import ercha.config --hidden-import ercha.logger ercha_launcher.py
if %ERRORLEVEL% neq 0 (
echo [Error] Building exe failed. Exiting...
exit /b %ERRORLEVEL%
)
echo Building installer...
wix build installer.wxs -arch x64 -out ERCHA.msi
if %ERRORLEVEL% neq 0 (
echo [Error] Creating installer failed. Exiting...
exit /b %ERRORLEVEL%
)
echo Generating WinGet Manifest...
python generate_winget_manifest.py
if %ERRORLEVEL% neq 0 (
echo [Error] Creating WinGet manifest failed. Exiting...
exit /b %ERRORLEVEL%
)