2021-12-05 19:29:43 +00:00
|
|
|
# Elder Scrolls Online Commadline Addon Manager
|
|
|
|
|
2021-12-14 22:21:42 +00:00
|
|
|
Elder Scrolls Online addon manager and a Tamriel Trade Centre price table updater.
|
2021-12-05 19:29:43 +00:00
|
|
|
|
2021-12-05 20:09:32 +00:00
|
|
|
[MIT License](LICENSE)
|
|
|
|
|
2021-12-14 22:21:42 +00:00
|
|
|
It is recommended that you back up your ESO live profile before using `banana` in case you want to revert back.
|
|
|
|
|
|
|
|
On Windows, press `Windows Key + e` to open a file explorer and enter the following path in the address bar:
|
|
|
|
|
|
|
|
```
|
|
|
|
%HOME%\Documents\Elder Scrolls Online\
|
|
|
|
```
|
|
|
|
|
2022-01-05 22:48:39 +00:00
|
|
|
or on Windows 11
|
|
|
|
|
|
|
|
```
|
|
|
|
Documents\Elder Scrolls Online\
|
|
|
|
```
|
|
|
|
|
2021-12-14 22:21:42 +00:00
|
|
|
Make a copy of the `live` folder and rename it to something meaningful like `old` or `backup`.
|
|
|
|
|
2021-12-05 19:29:43 +00:00
|
|
|
# Dependencies
|
|
|
|
|
2021-12-05 20:09:32 +00:00
|
|
|
```
|
|
|
|
python3-pip
|
|
|
|
```
|
|
|
|
|
|
|
|
# Linux Installation
|
|
|
|
|
2022-01-05 22:48:39 +00:00
|
|
|
Install `python3` and `pip3`, the following instructions are for Debian.
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt install python3-pip
|
|
|
|
pip3 install .
|
|
|
|
```
|
|
|
|
|
|
|
|
Once the project is installed to python's packages you may invoke the addon script with the following command:
|
|
|
|
|
|
|
|
```
|
|
|
|
eso-banana-script
|
|
|
|
```
|
|
|
|
|
|
|
|
## Linux Scheduled
|
|
|
|
|
|
|
|
TODO linux chron job instructions.
|
|
|
|
|
2021-12-05 20:09:32 +00:00
|
|
|
# Windows Installation
|
2021-12-05 19:29:43 +00:00
|
|
|
|
2022-01-05 22:48:39 +00:00
|
|
|
Install the latest Python 3 using the installer provided by [python.org](https://www.python.org/downloads/windows/).
|
|
|
|
|
|
|
|
Open [Windows Terminal](https://www.microsoft.com/en-US/p/windows-terminal/9n0dx20hk701) or any windows command prompt and navigate to this project.
|
|
|
|
Use the Python package manager PIP to install `eso-banana`.
|
|
|
|
|
|
|
|
```powershell
|
|
|
|
cd .\eso-banana\
|
|
|
|
pip install .
|
|
|
|
```
|
|
|
|
|
|
|
|
Once the project is installed to python's packages you may invoke the addon script with the following command:
|
|
|
|
|
|
|
|
```powershell
|
|
|
|
eso-banana-script.exe
|
|
|
|
```
|
|
|
|
|
|
|
|
## Windows Scheduled
|
|
|
|
|
|
|
|
To schedule a periodic background run of `eso-banana`, open Powershell as a user and enter the following commands.
|
|
|
|
|
|
|
|
```powershell
|
2022-01-05 23:20:32 +00:00
|
|
|
$Command = (Get-Command "eso-banana-script.exe").Source
|
|
|
|
$Action = New-ScheduledTaskAction -Execute $Command -Argument "--verbose"
|
2022-01-05 22:48:39 +00:00
|
|
|
$Trigger = New-ScheduledTaskTrigger -Daily -At 11am
|
|
|
|
$Settings = New-ScheduledTaskSettingsSet -RunOnlyIfNetworkAvailable -StartWhenAvailable -RunOnlyIfIdle
|
|
|
|
Register-ScheduledTask -TaskName "eso-banana" -Action $Action -Trigger $Trigger -Settings $Settings -Description "Elder Scrolls Online addon manager and a Tamriel Trade Centre price table updater."
|
|
|
|
```
|
|
|
|
|
|
|
|
To check to make sure the task is registered correctly, enter `Get-ScheduledTask` and check that the first entry looks similar:
|
|
|
|
|
|
|
|
```
|
|
|
|
TaskPath TaskName State
|
|
|
|
-------- -------- -----
|
|
|
|
\ eso-banana Ready
|
|
|
|
```
|
2021-12-05 20:09:32 +00:00
|
|
|
|
2022-01-05 22:48:39 +00:00
|
|
|
# Development
|
2021-12-05 20:09:32 +00:00
|
|
|
|
|
|
|
Use docker to test the python components.
|
|
|
|
For docker installation run the following commands on [Ubuntu 20.04](https://ubuntu.com/download/):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo apt-get update && sudo apt-get install -y \
|
|
|
|
docker-compose \
|
|
|
|
docker.io \
|
|
|
|
&& apt-get clean
|
|
|
|
|
|
|
|
sudo usermod -aG docker $USER
|
|
|
|
```
|
|
|
|
|
|
|
|
Build and run the dev environment by entering the following commands:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd ./banana/
|
|
|
|
docker-compose build
|
|
|
|
docker-compose run banana
|
|
|
|
```
|