Merge branch 'master' of github.com:jankae/LibreVNA

This commit is contained in:
Jan Käberich 2025-03-03 11:35:34 +01:00
commit cbd7d7149c
3 changed files with 96 additions and 2 deletions

View file

@ -188,7 +188,50 @@ jobs:
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}" LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: LibreVNA-GUI-OSX-${{env.LIBREVNA_VERSION}} name: LibreVNA-GUI-OSX-latest-${{env.LIBREVNA_VERSION}}
path: Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip
PC_Application_OSX_13:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install qt@6 pcre
- name: Set Environment
run: |
echo "/usr/local/opt/qt@6/bin" >> $GITHUB_PATH
- name: Get build timestamp
id: id_date
run: echo "timestamp=$(date +%Y-%m-%d-%H-%M-%S)" >> $GITHUB_OUTPUT
- name: Get app version
id: id_version
run: |
cd Software/PC_Application/LibreVNA-GUI
fw_major=`pcregrep -o '(?<=FW_MAJOR=)[0-9]+' LibreVNA-GUI.pro`
fw_minor=`pcregrep -o '(?<=FW_MINOR=)[0-9]+' LibreVNA-GUI.pro`
fw_patch=`pcregrep -o '(?<=FW_PATCH=)[0-9]+' LibreVNA-GUI.pro`
echo "app_version=v$fw_major.$fw_minor.$fw_patch-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT
- name: Build application
run: |
cd Software/PC_Application/LibreVNA-GUI
qmake LibreVNA-GUI.pro
make -j9
macdeployqt LibreVNA-GUI.app
zip -ry LibreVNA-GUI.zip LibreVNA-GUI.app
shell: bash
- name: Upload artifact
env:
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
uses: actions/upload-artifact@v4
with:
name: LibreVNA-GUI-OSX-13.7-${{env.LIBREVNA_VERSION}}
path: Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip path: Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip
Embedded_Firmware: Embedded_Firmware:

View file

@ -209,7 +209,50 @@ jobs:
with: with:
upload_url: ${{ needs.PC_Application_Ubuntu.outputs.upload_url }} upload_url: ${{ needs.PC_Application_Ubuntu.outputs.upload_url }}
asset_path: ./Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip asset_path: ./Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip
asset_name: LibreVNA-GUI-OSX-${{env.LIBREVNA_VERSION}}.zip asset_name: LibreVNA-GUI-OSX-latest-${{env.LIBREVNA_VERSION}}.zip
asset_content_type: application/tar+gzip
PC_Application_OSX_13:
needs: PC_Application_Ubuntu
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install qt@6 pcre
- name: Set Environment
run: |
echo "/usr/local/opt/qt@6/bin" >> $GITHUB_PATH
- name: Get app version
id: id_version
run: |
cd Software/PC_Application/LibreVNA-GUI
fw_major=`pcregrep -o '(?<=FW_MAJOR=)[0-9]+' LibreVNA-GUI.pro`
fw_minor=`pcregrep -o '(?<=FW_MINOR=)[0-9]+' LibreVNA-GUI.pro`
fw_patch=`pcregrep -o '(?<=FW_PATCH=)[0-9]+' LibreVNA-GUI.pro`
echo "app_version=v$fw_major.$fw_minor.$fw_patch" >> $GITHUB_OUTPUT
- name: Build application
run: |
cd Software/PC_Application/LibreVNA-GUI
qmake LibreVNA-GUI.pro
make -j9
macdeployqt LibreVNA-GUI.app
zip -ry LibreVNA-GUI.zip LibreVNA-GUI.app
shell: bash
- name: 'Upload release asset'
uses: actions/upload-release-asset@v1
env:
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.PC_Application_Ubuntu.outputs.upload_url }}
asset_path: ./Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip
asset_name: LibreVNA-GUI-OSX-13.7-${{env.LIBREVNA_VERSION}}.zip
asset_content_type: application/tar+gzip asset_content_type: application/tar+gzip
Embedded_Firmware: Embedded_Firmware:

View file

@ -37,6 +37,14 @@ cd $UNPACKED_ZIP_FOLDER$
./LibreVNA-GUI ./LibreVNA-GUI
``` ```
### MacOS
* Download the latest [Release](https://github.com/jankae/LibreVNA/releases)
* If you are using MacOS 14+ use the release with `latest` in the name.
* If you are using MacOS >13.7 use the release with `13.7` in the name.
* Unpack the zip file and move LibreVNA-GUI.app to your `/Applications` folder.
* Start LibreVNA-GUI.app and add a security exception to allow the Mac to run the app with an "untrusted" signing key.
* Launch app again.
## Quick Start ## Quick Start
* You can find released versions of the GUI application and the device firmware [here](https://github.com/jankae/LibreVNA/releases). * You can find released versions of the GUI application and the device firmware [here](https://github.com/jankae/LibreVNA/releases).
* If you would like to try out the newest features, the compiled versions of each commit can be found [here](https://github.com/jankae/LibreVNA/actions) (but keep in mind that some features might be unstable or incomplete). If you are having trouble downloading them, please refer to this [guide](Documentation/DeveloperInfo/DownloadActionBuilds.md). * If you would like to try out the newest features, the compiled versions of each commit can be found [here](https://github.com/jankae/LibreVNA/actions) (but keep in mind that some features might be unstable or incomplete). If you are having trouble downloading them, please refer to this [guide](Documentation/DeveloperInfo/DownloadActionBuilds.md).