84e61cb749
* Update GatekeeperV2 Due to changes in how Python and Pip handle packages, this needed a change to use a virtual environment. This won't work in Docker until Mike adds python3-venv to the image, but I suspect it should be resolved shortly. * Fix issue * Oopsies
25 lines
1023 B
JSON
25 lines
1023 B
JSON
[
|
|
{
|
|
"UpdateStageName": "Bot Download",
|
|
"UpdateSourcePlatform": "All",
|
|
"UpdateSource": "FetchURL",
|
|
"UpdateSourceData": "https://github.com/k8thekat/GatekeeperV2/archive/refs/heads/main.zip",
|
|
"UnzipUpdateSource": true,
|
|
"OverwriteExistingFiles": true,
|
|
"DeleteAfterExtract": true
|
|
},
|
|
{
|
|
"UpdateStageName": "Create Virtual Environment",
|
|
"UpdateSourcePlatform": "Linux",
|
|
"UpdateSource": "Executable",
|
|
"UpdateSourceData": "/bin/bash",
|
|
"UpdateSourceArgs": "-c \"rm -rf '{{$FullRootDir}}venv' && /usr/bin/python3 -m venv '{{$FullRootDir}}venv'\""
|
|
},
|
|
{
|
|
"UpdateStageName": "Pip & Discord.py Script",
|
|
"UpdateSourcePlatform": "Linux",
|
|
"UpdateSource": "Executable",
|
|
"UpdateSourceData": "/bin/bash",
|
|
"UpdateSourceArgs": "-c \"source '{{$FullRootDir}}venv/bin/activate' && python3 -m pip install --upgrade pip && python3 -m pip install numpy requests && git clone https://github.com/Rapptz/discord.py && cd discord.py && python3 -m pip install discord.py\""
|
|
}
|
|
] |