Skip to content

Commit cbd7d71

Browse files
committed
Merge branch 'master' of github.com:jankae/LibreVNA
2 parents cef3b74 + 05d6112 commit cbd7d71

File tree

3 files changed

+96
-2
lines changed

3 files changed

+96
-2
lines changed

.github/workflows/Build.yml

+44-1
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,52 @@ jobs:
188188
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
189189
uses: actions/upload-artifact@v4
190190
with:
191-
name: LibreVNA-GUI-OSX-${{env.LIBREVNA_VERSION}}
191+
name: LibreVNA-GUI-OSX-latest-${{env.LIBREVNA_VERSION}}
192192
path: Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip
193+
194+
PC_Application_OSX_13:
195+
runs-on: macos-13
196+
steps:
197+
- uses: actions/checkout@v4
198+
199+
- name: Install dependencies
200+
run: |
201+
brew install qt@6 pcre
202+
203+
- name: Set Environment
204+
run: |
205+
echo "/usr/local/opt/qt@6/bin" >> $GITHUB_PATH
193206
207+
- name: Get build timestamp
208+
id: id_date
209+
run: echo "timestamp=$(date +%Y-%m-%d-%H-%M-%S)" >> $GITHUB_OUTPUT
210+
211+
- name: Get app version
212+
id: id_version
213+
run: |
214+
cd Software/PC_Application/LibreVNA-GUI
215+
fw_major=`pcregrep -o '(?<=FW_MAJOR=)[0-9]+' LibreVNA-GUI.pro`
216+
fw_minor=`pcregrep -o '(?<=FW_MINOR=)[0-9]+' LibreVNA-GUI.pro`
217+
fw_patch=`pcregrep -o '(?<=FW_PATCH=)[0-9]+' LibreVNA-GUI.pro`
218+
echo "app_version=v$fw_major.$fw_minor.$fw_patch-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT
219+
220+
- name: Build application
221+
run: |
222+
cd Software/PC_Application/LibreVNA-GUI
223+
qmake LibreVNA-GUI.pro
224+
make -j9
225+
macdeployqt LibreVNA-GUI.app
226+
zip -ry LibreVNA-GUI.zip LibreVNA-GUI.app
227+
shell: bash
228+
229+
- name: Upload artifact
230+
env:
231+
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
232+
uses: actions/upload-artifact@v4
233+
with:
234+
name: LibreVNA-GUI-OSX-13.7-${{env.LIBREVNA_VERSION}}
235+
path: Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip
236+
194237
Embedded_Firmware:
195238
runs-on: ubuntu-20.04
196239
steps:

.github/workflows/Release_tag_stable.yml

+44-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,50 @@ jobs:
209209
with:
210210
upload_url: ${{ needs.PC_Application_Ubuntu.outputs.upload_url }}
211211
asset_path: ./Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip
212-
asset_name: LibreVNA-GUI-OSX-${{env.LIBREVNA_VERSION}}.zip
212+
asset_name: LibreVNA-GUI-OSX-latest-${{env.LIBREVNA_VERSION}}.zip
213+
asset_content_type: application/tar+gzip
214+
215+
PC_Application_OSX_13:
216+
needs: PC_Application_Ubuntu
217+
runs-on: macos-13
218+
steps:
219+
- uses: actions/checkout@v4
220+
221+
- name: Install dependencies
222+
run: |
223+
brew install qt@6 pcre
224+
225+
- name: Set Environment
226+
run: |
227+
echo "/usr/local/opt/qt@6/bin" >> $GITHUB_PATH
228+
229+
- name: Get app version
230+
id: id_version
231+
run: |
232+
cd Software/PC_Application/LibreVNA-GUI
233+
fw_major=`pcregrep -o '(?<=FW_MAJOR=)[0-9]+' LibreVNA-GUI.pro`
234+
fw_minor=`pcregrep -o '(?<=FW_MINOR=)[0-9]+' LibreVNA-GUI.pro`
235+
fw_patch=`pcregrep -o '(?<=FW_PATCH=)[0-9]+' LibreVNA-GUI.pro`
236+
echo "app_version=v$fw_major.$fw_minor.$fw_patch" >> $GITHUB_OUTPUT
237+
238+
- name: Build application
239+
run: |
240+
cd Software/PC_Application/LibreVNA-GUI
241+
qmake LibreVNA-GUI.pro
242+
make -j9
243+
macdeployqt LibreVNA-GUI.app
244+
zip -ry LibreVNA-GUI.zip LibreVNA-GUI.app
245+
shell: bash
246+
247+
- name: 'Upload release asset'
248+
uses: actions/upload-release-asset@v1
249+
env:
250+
LIBREVNA_VERSION: "${{steps.id_version.outputs.app_version}}"
251+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
252+
with:
253+
upload_url: ${{ needs.PC_Application_Ubuntu.outputs.upload_url }}
254+
asset_path: ./Software/PC_Application/LibreVNA-GUI/LibreVNA-GUI.zip
255+
asset_name: LibreVNA-GUI-OSX-13.7-${{env.LIBREVNA_VERSION}}.zip
213256
asset_content_type: application/tar+gzip
214257

215258
Embedded_Firmware:

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ cd $UNPACKED_ZIP_FOLDER$
3737
./LibreVNA-GUI
3838
```
3939

40+
### MacOS
41+
* Download the latest [Release](https://github.com/jankae/LibreVNA/releases)
42+
* If you are using MacOS 14+ use the release with `latest` in the name.
43+
* If you are using MacOS >13.7 use the release with `13.7` in the name.
44+
* Unpack the zip file and move LibreVNA-GUI.app to your `/Applications` folder.
45+
* Start LibreVNA-GUI.app and add a security exception to allow the Mac to run the app with an "untrusted" signing key.
46+
* Launch app again.
47+
4048
## Quick Start
4149
* You can find released versions of the GUI application and the device firmware [here](https://github.com/jankae/LibreVNA/releases).
4250
* 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).

0 commit comments

Comments
 (0)