-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.win.bat
22 lines (22 loc) · 1.06 KB
/
build.win.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SET ProjectRoot=%cd%
IF [%1] EQU [p] (
echo Building Production
cd src\Python\win
..\venv\Scripts\pyinstaller.exe --log-level=WARN --noconfirm --clean --name dl --onefile --add-binary="..\Exes\ffmpeg.exe;ffmpeg.exe" --add-binary="..\Exes\youtube-dl.exe;youtube-dl.exe" .\Utilities-Win.py
copy dist\dl.exe ..\..\..\public
cd "%ProjectRoot%"
xcopy /S/Y/I .\src\JS\ui\Images .\public\images
npx webpack -p
npx minify .\src\JS\electron\electron.js -d .\public
npx electron-builder -c.extraMetadata.main=public/electron.js -w nsis --x64
) ELSE (
echo Building Debug
cd src\Python\win
..\venv\Scripts\pyinstaller.exe --log-level=WARN --noconfirm --clean --name dl --onefile --add-binary="..\Exes\ffmpeg.exe;ffmpeg.exe" --add-binary="..\Exes\youtube-dl.exe;youtube-dl.exe" .\Utilities-Win.py
copy dist\dl.exe ..\..\..\public
cd "%ProjectRoot%"
xcopy /S/Y/I .\src\JS\ui\Images .\public\images
npx webpack
copy .\src\JS\electron\electron.js public
npx electron-builder -c.extraMetadata.main=public/electron.js -w nsis --x64
)