Build and Distribute
Linux
For adding the bot to the startup you can use this script: add_to_startup.sh
- Do not forget to give execute permissions:
chmod +x add_to_startup.sh
Windows
Setting up an executable package on Windows.
- Download py2exe
- Install it with virtualenv activated with:
pip install <path_to_download>/py2exe.exe
- Install it with virtualenv activated with:
- Make the build script.
from distutils.core import setup
import py2exe
setup(console=['bot.py'])
- Make the build:
python setup.py install
- Expect to see lots and lots of output.
- Move the folder key with the public key only inside and place it side by side with the executable.
- Inside the created folder
/dist/
- Inside the created folder
- Test your executable
- Now that the package has been created it is ready to test:
Source: http://py2exe.org/index.cgi/Tutorial
Additionally if you want to create an installer and add to startup option you can use NSIS (Nullsoft Scriptable Install System).