Skip to content

Commit cf63c11

Browse files
committed
Experimental alternative installation technique to pynsist.
1 parent 14aefea commit cf63c11

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

alternative-install/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
To create an installer from this, bat2exe from https://www.bat2exe.net/ and run it on this directory.
2+
You'll end up with an exe file which people can use to install / run.

alternative-install/RLBotGUI.bat

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@echo off
2+
3+
echo Installing RLBotGUI if necessary, then launching!
4+
5+
py -3.7 --version
6+
7+
rem If python 3.7 is not installed, then the above py command will cause a non-zero error level.
8+
9+
if %ERRORLEVEL% GTR 0 (
10+
11+
rem Download a python installer from python.org.
12+
13+
if not exist python-install.exe (
14+
mkdir %LocalAppData%\RLBotGUIX\
15+
powershell -Command "Invoke-WebRequest https://www.python.org/ftp/python/3.7.7/python-3.7.7-amd64.exe -OutFile %LocalAppData%\RLBotGUIX\python-installer.exe"
16+
)
17+
18+
rem Go ahead and install the specific version of python we want.
19+
rem We have selected options which will not modify the user's PATH
20+
rem If the user already has 3.7 installed but the py command was not available or could not find it,
21+
rem the installation will be modified, which will probably not cause trouble for anyone.
22+
23+
%LocalAppData%\RLBotGUIX\python-installer.exe /passive InstallAllUsers=0 Shortcuts=0 Include_doc=0 Include_dev=0 Include_launcher=1 InstallLauncherAllUsers=0 PrependPath=0
24+
)
25+
26+
rem Create a virtual environment which will isolate our package installations from any
27+
rem existing python installation that the user may have.
28+
29+
if not exist %LocalAppData%\RLBotGUIX\venv\Scripts\python.exe (
30+
py -3.7 -m venv %LocalAppData%\RLBotGUIX\venv
31+
)
32+
33+
set rlbotpy=%LocalAppData%\RLBotGUIX\venv\Scripts\python.exe
34+
35+
rem Install and / or upgrade RLBot components
36+
37+
%rlbotpy% -m pip install --upgrade pip
38+
%rlbotpy% -m pip install eel
39+
%rlbotpy% -m pip install --upgrade rlbot_gui rlbot
40+
41+
rem Launch the GUI
42+
43+
%rlbotpy% -c "from rlbot_gui import gui; gui.start()"

alternative-install/rlbot.ico

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)