New releases are automatically built using AppVeyor. This allows non-Windows users to be able to make builds, and also makes the entire process of making a release easier.
If you are just building locally for testing, see below about "Building locally"
AppVeyor is configured via the appveyor.yml
file. Currently, it automatically builds on tag and pushes the zipped executable and README back to GitHub Releases.
Whenever it's time for a new release, simply push a tag so AppVeyor takes notice.
Edit the release on GitHub afterwards to add patch notes, if applicable. Else the release description may default to a blank message or the latest commit message.
Automatic builds need to be enabled at AppVeyor and the auth_token
needs to be set from a GitHub account with write access to the repo.
- Log in at AppVeyor using your GitHub credentials.
- Click
(+) New Project
in the top left, thenGitHub
>Authorize GitHub
for public projects. - Back in AppVeyor, mouse over
PyEveLiveDps
and click(+) Add
on the far right.
- Log in at AppVeyor using your GitHub credentials.
- On GitHub, generate a new access token:
- Click
Generate new token
in the top right. - Name it
AppVeyor
and checkpublic_repo
. - Copy the resulting token somewhere safe.
- Click
- On AppVeyor, encrypt the token for safe use in the config file:
- Paste the previously generated token and click
Encrypt
. - In
appveyor.yml
, setauth_token: secure:
to the encrypted token from last step. DO NOT use the unencrypted token here or bad things can happen to your repos! - Commit and tag the change containing the updated auth token, then push.
- Paste the previously generated token and click
From here on, AppVeyor will autonomously process each tagged commit without further intervention.
To build locally, you must build from a Windows machine.
You may encounter errors about missing libraries (api-ms-win-crt-*.DLL), depending on your version of Windows. This is 'ok' in most cases, but may not work on all devices. Follow the instructions here about downloading the Windows SDK and adding the .dll folders to your PATH.
Run the following commands with Python 3.5:
pip install -r requirements.txt
pip install pyinstaller
pyinstaller setup.spec
Executable will then be located in ./dist/