Skip to content

Commit

Permalink
Fixes #500 - Logon Details: Build exe using GitHub action (#529)
Browse files Browse the repository at this point in the history
* wip

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Change to run on WIndows to see if it works

* Update LogonDetails.py (adds rating, OBS callsign)

* Try and move VCCS nickname as ES doesn't set it

* Move double newline

* Try tab instead of space #gergely

* try again

* fix lastsession callsign

* enable password entry

* remove changes silly billy

* remove batch file

* Update compile_exe.yml

* Trigger

* Trigger

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Update compile_exe.yml

* Update LogonDetails.exe

* Update compile_exe.yml

* Update LogonDetails.exe

* Update compile_exe.yml

* Improve LogonDetails.py comments for readability

* Update compile_exe.yml

---------

Co-authored-by: Calum Towers <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
3 people committed Sep 24, 2023
1 parent d38d92f commit 4b69492
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 552 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/compile_exe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Complie LogonDetails.exe

on:
push:
branches:
- 'main'

jobs:
changes:
name: Check for Changes
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
build: ${{ steps.filter.outputs.build }}
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Check for Changes
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
build:
- './UK/LogonDetails.py'
build-exe:
name: Build EXE
runs-on: windows-latest
needs: changes
if: ${{ needs.changes.outputs.build == 'true' }}
concurrency:
group: uk-controller-pack-build-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install Dependencies
run: pip install pyinstaller

- name: Run Python Script
run: pyinstaller --distpath ./UK/ --onefile -n LogonDetails.exe ./UK/LogonDetails.py

- name: Commit exe File
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ./UK/LogonDetails.exe
git commit -m "Update LogonDetails.exe"
git push
Loading

0 comments on commit 4b69492

Please sign in to comment.