-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.bat
22 lines (22 loc) · 894 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
echo Installing Inno Setup...
winget install --id=JRSoftware.InnoSetup -e -s winget
echo Installing Dependencies...
bun install
pip install uv
uv pip install git+https://github.com/bottlepy/bottle.git
uv pip install wheel
uv pip install -r requirements.txt
echo Building the UI...
bun run build
copy main.py tmp && copy icon.ico tmp
echo Building the executable folder...
cd tmp
python -m eel main.py web --clean --noconfirm --onedir --windowed --icon icon.ico --name "Useful Tools for Windows"
python -m eel main.py web --clean --noconfirm --onefile --windowed --icon icon.ico --name "Useful_Tools_for_Windows_Portable
cd ..
echo Building the installer...
"%ProgramFiles(x86)%\Inno Setup 6\ISCC.exe" setup.iss
"%LOCALAPPDATA%\Programs\Inno Setup 6\ISCC.exe" setup.iss
move .\tmp\dist\Useful_Tools_for_Windows_Portable.exe .\dist\Useful_Tools_for_Windows_Portable.exe
rmdir /s /q tmp