-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.CLI.bat
More file actions
93 lines (88 loc) · 2.5 KB
/
build.CLI.bat
File metadata and controls
93 lines (88 loc) · 2.5 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@echo off
cls
echo ====================================================
echo Auto-Py-to-Exe CLI Tool
echo ====================================================
echo.
:: Main menu
:Menu
cls
echo ====================================================
echo Auto-Py-to-Exe CLI Tool
echo ====================================================
echo.
echo 1. Install or Update auto-py-to-exe
echo 2. Uninstall auto-py-to-exe
echo 3. Run auto-py-to-exe
echo 4. Exit
echo.
set /p "option=Select an option: "
if "%option%"=="1" goto :InstallAutoPyToExe
if "%option%"=="2" goto :UninstallAutoPyToExe
if "%option%"=="3" goto :RunAutoPyToExe
if "%option%"=="4" exit /b
goto :Menu
:: Function to install/update auto-py-to-exe
:InstallAutoPyToExe
cls
echo ====================================================
echo Installing/Updating auto-py-to-exe
echo ====================================================
echo.
echo Checking if auto-py-to-exe is installed...
pip show auto-py-to-exe >nul 2>nul
if %errorlevel% neq 0 (
echo auto-py-to-exe is not installed. Proceeding with installation...
) else (
echo auto-py-to-exe is already installed. Proceeding with update...
)
pip install auto-py-to-exe --upgrade --quiet
if %errorlevel% neq 0 (
echo Error during installation/update of auto-py-to-exe.
pause
goto :Menu
)
echo auto-py-to-exe was successfully installed/updated.
pause
goto :Menu
:: Function to uninstall auto-py-to-exe
:UninstallAutoPyToExe
cls
echo ====================================================
echo Uninstalling auto-py-to-exe
echo ====================================================
echo.
pip show auto-py-to-exe >nul 2>nul
if %errorlevel% neq 0 (
echo auto-py-to-exe is not installed. Nothing to uninstall.
pause
goto :Menu
)
echo Are you sure you want to uninstall auto-py-to-exe? (y/n)
set /p "confirm=Your choice: "
if /i "%confirm%"=="y" (
pip uninstall auto-py-to-exe -y --quiet
if %errorlevel% neq 0 (
echo Error during uninstallation of auto-py-to-exe.
pause
goto :Menu
)
echo auto-py-to-exe was successfully uninstalled.
) else (
echo Uninstallation canceled.
)
pause
goto :Menu
:: Function to run auto-py-to-exe
:RunAutoPyToExe
cls
echo ====================================================
echo Running auto-py-to-exe
echo ====================================================
echo.
auto-py-to-exe
if %errorlevel% neq 0 (
echo Error running auto-py-to-exe. Ensure it is properly installed.
pause
)
goto :Menu