kentsx/Python Executable Builder Action
Package python scripts into executables for different OS's, and upload to release / b2
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jun 15, 2024
- License
- None
Pinned Snippet
uses: kentsx/python2exe@19c006f72ad75562ab3fea363131a3615e5ff17c # v1.1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| main | the main python file (without .py) | yes | — |
| dist | the dist path | no | ./dist |
| python_version | the version of python | no | 3.9 |
| pyinstaller_version | the version of pyinstaller | no | 6.7 |
| exe_name | the output exe name | no | main |
| use-dependencies | whether to install requirements.txt before build, which is in the root dir | no | true |
| no-console | whether to disappear console terminal | no | true |
| icon | add the icon mark into your executable, the file path of your ico, e.g. logo.png or logo.ico | no | NONE |
| artifact | Whether upload the build executable to artifact | no | false |
| compression_level | The level of compression for Zlib to be applied to the artifact archive, range from 0(no compression) to 9(max compression) | no | 6 |
| release | Whether create a release with the executable | no | true |
| token | The Github token. Make sure you have the permission to create release. | no | ${{ github.token }} |
| tag | An optional tag for the release. If this is omitted the git ref will be used (if it is a tag). | no | ${{ github.ref_name }}-Run#${{ github.run_id }}-Attempt#${{ github.run_attempt }} |
| bodyfile | An optional body file for the release. This should be the path to the file | no | "" |
| version_file_path | The path of your version.py file (file name can be different). It must contains a variable "VER" | no | "" |
Outputs
| name | description |
|---|---|
| version | executable version |