This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
breca edited this page Mar 3, 2018
·
1 revision
You can run this straight from source if you have Python 3 installed.
- Grab the latest Python 3 installer from https://www.python.org/downloads/windows/
- Using an ADMINISTRATIVE console, you'll need to then install the libraries this needs to run. At time of writing, these are...
- Pillow
- pytz
- requests_futures
You'll need to
pip install
these. Assuming that Python is in your path, you can go ahead and launch 'BGS Companion.py'
- Replace images\logo_patch.png with your cool wing logo. Current image dimensions are 200x175, other dimensions will work but might not format very nicely.
- Replace images\favicon.ico with your cool icon. There are many resources online where you can generate a favicon from an image.
- Edit the settings.ini file and change the 'AdvisorFaction' to whatever your BGS Faction is called.
- Change the 'versionurl' to wherever you are going to be hosting your Companion from.
There's no doubt lots of ways to do this but I went with PyInstaller.
- Install PyInstaller if you don't have it.
- Run PyInstaller from the directory root:
pyinstaller --clean --noconfirm --noconsole -i images\favicon.ico -y "BGS Companion.py"
- Once it's done you need to copy your settings.ini and images into the new 'BGS Companion' directory under 'dist'
- Ensure that new directory has an 'etc' directory. It can be empty, it just needs to be there. 😄
- Zip it up, and then test it out (using the .exe obvs)
- Assuming nothing blew up, throw it up on your host.