kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
Workflow update
rodzic
ad0793ce10
commit
8905277da0
|
@ -1,36 +1,29 @@
|
|||
name: Build Windows Executable
|
||||
|
||||
on:
|
||||
create:
|
||||
tags:
|
||||
- v*
|
||||
branches:
|
||||
- main
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install pyinstaller
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install pyinstaller
|
||||
- name: Build executable
|
||||
run: pyinstaller --name=mmrelay.exe --onefile --console main.py
|
||||
|
||||
- name: Build Windows Executable
|
||||
run: |
|
||||
pyinstaller --onefile main.py
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: meshtastic-matrix-relay-windows
|
||||
path: dist/main.exe
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: mmrelay
|
||||
path: dist/mmrelay.exe
|
|
@ -90,7 +90,7 @@ python main.py
|
|||
```
|
||||
Example output:
|
||||
```
|
||||
$ python main.py
|
||||
|
||||
$ python main.py
|
||||
INFO:meshtastic.matrix.relay:Starting Meshtastic <==> Matrix Relay...
|
||||
INFO:meshtastic.matrix.relay:Connecting to radio at meshtastic.local ...
|
||||
|
|
Ładowanie…
Reference in New Issue