-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReleaseNewVersion.bat
More file actions
28 lines (24 loc) · 1.11 KB
/
ReleaseNewVersion.bat
File metadata and controls
28 lines (24 loc) · 1.11 KB
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
@echo off
:: Set the root directory to the directory where the batch file is located
set "root=%~dp0"
:: Remove trailing backslash for consistency (optional)
set "root=%root:~0,-1%"
:: Execute PyInstaller with the specified parameters
:: "--hidden-import requests" allows functions in config to use the `requests` library (1 MiB addition)
:: "hidden-import 3c22db458360489351e4__mypyc" this import is needed because PyInstaller cannot analyze imports in binary extensions
:: The tomli module and its submodules are stubborn
:: https://github.com/orgs/pyinstaller/discussions/7999#discussioncomment-7250690
pyinstaller --name "RobloxCore" ^
--onefile "%root%\src\_main.py" ^
-p "%root%\src" ^
--console ^
--workpath "%root%\PyInstallerWork" ^
--distpath "%root%" ^
--icon "%root%\src\Icon.ico" ^
--specpath "%root%\PyInstallerWork\Spec" ^
--hidden-import requests ^
--hidden-import 3c22db458360489351e4__mypyc ^
--hidden-import tomli ^
--collect-submodules tomli
echo PyInstaller build completed!
pause