Linux, WSL or Mac
git clone --recurse-submodules https://github.com/moxiu33/OriginGSItool_v2
cd OriginGSItool_v2
python -m venv myenv
then
source myenv/bin/activate
and continue in this venv
bash setup.sh
Example: for making OxygenOS of oneplus 7 pro firmware, you can use this command
./url2GSI.sh https://oxygenos.oneplus.net/OnePlus7ProOxygen_21.O.07_OTA_007_all_1905120542_fc480574576b4843.zip OxygenOS
check url2GSI.sh for more info