mirror of
https://github.com/meshtastic/python.git
synced 2026-01-06 23:08:00 -05:00
refactor version info so pyinstaller will work; add build mac and ubuntu standalone executables
This commit is contained in:
26
.github/workflows/build_mac.yml
vendored
Normal file
26
.github/workflows/build_mac.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Build and publish mac standalone executable
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
pip install pyinstaller
|
||||
pip install -r requirements.txt
|
||||
pyinstaller -F -n meshtastic meshtastic/__main__.py
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: meshtastic
|
||||
path: dist
|
||||
26
.github/workflows/build_ubuntu.yml
vendored
Normal file
26
.github/workflows/build_ubuntu.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Build and publish ubuntu standalone executable
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
pip install pyinstaller
|
||||
pip install -r requirements.txt
|
||||
pyinstaller -F -n meshtastic meshtastic/__main__.py
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: meshtastic
|
||||
path: dist
|
||||
2
.github/workflows/build_windows.yml
vendored
2
.github/workflows/build_windows.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Build exe
|
||||
- name: Build
|
||||
run: |
|
||||
pip install pyinstaller
|
||||
pip install -r requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user