IMPROVEMENT: Make the README language simpler and more direct #920
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Installer | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
push: | |
concurrency: | |
group: ci-${{github.workflow}}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: 'windows-latest' | |
strategy: | |
matrix: | |
python-version: ['3.12'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install -U wheel setuptools pip | |
python -m pip install -U pywin32 lxml pymavlink pyserial Pillow | |
python -m pip install -U pyinstaller packaging | |
- name: Download Inno Setup installer | |
run: curl -L -o installer.exe http://files.jrsoftware.org/is/6/innosetup-6.3.3.exe | |
- name: Install Inno Setup | |
run: ./installer.exe /verysilent /allusers /dir=inst | |
- name: Build ardupilot_methodic_configurator | |
run: | | |
python -m pip install . --user | |
python -m pip list | |
- name: Prepare installer | |
run: | | |
cd ardupilot_methodic_configurator | |
copy ..\\windows\\ardupilot_methodic_configurator.spec | |
pyinstaller --clean ardupilot_methodic_configurator.spec | |
del ardupilot_methodic_configurator.spec | |
- name: Write the git commit hash to file | |
run: echo $(git rev-parse HEAD) > git_hash.txt | |
- name: Build installer | |
run: | | |
cd windows | |
$env:VERSION=$(python return_version.py) | |
curl -L -o "c:\program files (x86)\inno setup 6\Languages\ChineseSimplified.isl" https://raw.githubusercontent.com/jrsoftware/issrc/refs/heads/main/Files/Languages/Unofficial/ChineseSimplified.isl | |
ISCC.exe /dMyAppVersion=$env:VERSION ardupilot_methodic_configurator.iss | |
ls Output | |
- name: Archive build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ardupilot_methodic_configuratorInstaller | |
path: windows/Output | |
retention-days: 7 | |
- name: Pre Release | |
uses: "0xDylan/[email protected]" | |
if: github.ref == 'refs/heads/master' | |
with: | |
automatic_release_tag: "latest" | |
prerelease: true | |
title: "Development Build" | |
files: windows/Output/*.* | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Release | |
uses: "0xDylan/[email protected]" | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
prerelease: false | |
files: windows/Output/*.* | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" |