This repository contains configuration files for creating a PortableApps version of ReText for Windows.
Following the steps in this document you can get ReText up and running on your machine and optionally create an installer that you can easily take with you.
-
Get the ReTextPortable files from github.com and put them in a directory called
ReTextPortable
-
Install the portableapps.com launcher from portableapps.com
-
Install NSIS Portable (unicode version) in a sibling directory of the PortableApps.com Launcher as NSISPortable
-
Extract the 64-bit Windows embeddable package from python.org into
ReTextPortable\App\python
-
Edit the file named similarly to
python312._pth
and uncomment the lineimport site
-
Download get-pip.py into
ReTextPortable\App\python
-
From a command prompt go to the python directory and run get-pip:
cd ReTextPortable\App\python python get-pip.py
-
In the same command window install retext and all its dependencies using pip:
python -m pip install retext python -m pip install PyQt6-WebEngine
-
Run the portable apps launcher generator on the
ReTextPortable
directory to createReTextPortable.exe
-
Run
ReTextPortable.exe
to start ReText
In order to create an installer with the latest version of ReText from git, replace step 8 in the description above with the following:
-
a. Go to https://github.com/retext-project/retext, click the green Code button and click Download ZIP
b. Extract the zip file to the directory above
RetextPortable
. A directoryretext-master
will be created next to the ReTextPortable directoryc. In the same command window used in step 7 install retext and all its dependencies:
python -m pip install ..\..\..\retext-master python get-icons.py python -m pip install PyQt6-WebEngine
If you want you can also package the application created in the previous section in a single executable.
- Install the portableapps.com installer from portableapps.com
- Adapt the version numbers in
ReTextPortable\App\AppInfo\appinfo.ini
to match the version of ReText you are packaging - Run the portable apps installer generator on the
ReTextPortable
directory to createReTextPortable_<version>.paf.exe
, which will be stored next to theReTextPortable
directory.