Compare commits

...

132 Commits

Author SHA1 Message Date
Roberto Viola
dd4cf5ea09 using 4.25.1 also for protoc 2024-07-14 20:31:23 +02:00
Roberto Viola
6d20a109a8 built with the newer protoc 2024-07-14 20:14:22 +02:00
Roberto Viola
82ea0adadc reverting protobuf, let's compile using the 4 next 2024-07-14 19:32:07 +02:00
Roberto Viola
359adce2ce Update main.yml 2024-07-14 18:47:03 +02:00
Roberto Viola
52d4f0234b Update main.yml 2024-07-14 18:30:02 +02:00
Roberto Viola
fe9bdc1e38 Update main.yml 2024-07-14 18:15:54 +02:00
Roberto Viola
b4f18b8976 Update main.yml 2024-07-14 18:08:48 +02:00
Roberto Viola
6da7b489f8 Update main.yml 2024-07-14 18:03:02 +02:00
Roberto Viola
d29ecc6f64 Update main.yml 2024-07-14 17:33:35 +02:00
Roberto Viola
f2db390567 Update main.yml 2024-07-14 17:11:44 +02:00
Roberto Viola
320e09283d Update main.yml 2024-07-14 16:57:06 +02:00
Roberto Viola
f6b0f4873d forcing specific version of protoc on vcpkg 2024-07-14 16:56:18 +02:00
Roberto Viola
0ab25058fb Update trainprogram.cpp 2024-07-14 16:12:19 +02:00
Roberto Viola
b220bb93d6 Removing FTMS only limitation for windows? 2024-07-14 16:12:08 +02:00
Roberto Viola
c7c6f53468 Merge branch 'master' into zwift-api-windows 2024-07-14 16:10:55 +02:00
Roberto Viola
f1c50972e1 Update main.yml 2024-03-05 09:10:30 +01:00
Roberto Viola
8f6f775d3f Update main.yml 2024-03-05 09:05:59 +01:00
Roberto Viola
a00306f283 Update main.yml 2024-03-04 11:32:42 +01:00
Roberto Viola
4b09de26c9 Update main.yml 2024-03-04 10:56:42 +01:00
Roberto Viola
542e88eac4 Update main.yml 2024-03-04 09:34:59 +01:00
Roberto Viola
01d89fc53b Update main.yml 2024-03-04 09:01:33 +01:00
Roberto Viola
7f92c11208 Update main.yml 2024-03-04 09:00:59 +01:00
Roberto Viola
0ecff1c081 Update main.yml 2024-03-04 08:19:20 +01:00
Roberto Viola
6e575c8b4f Revert "removing vcpkg, let's build protobuf from scratch"
This reverts commit 1e3cde341d.
2024-03-04 08:11:02 +01:00
Roberto Viola
98c8a24698 Revert "Update main.yml"
This reverts commit 81798642af.
2024-03-04 08:10:57 +01:00
Roberto Viola
86ecc71263 Revert "Update main.yml"
This reverts commit 074b4509f6.
2024-03-04 08:10:54 +01:00
Roberto Viola
e6ddfcf682 Revert "Update main.yml"
This reverts commit 9f40ddbb9d.
2024-03-04 08:10:48 +01:00
Roberto Viola
9f40ddbb9d Update main.yml 2024-03-03 19:19:35 +01:00
Roberto Viola
074b4509f6 Update main.yml 2024-03-03 19:13:59 +01:00
Roberto Viola
81798642af Update main.yml 2024-03-03 19:05:21 +01:00
Roberto Viola
1e3cde341d removing vcpkg, let's build protobuf from scratch 2024-03-03 19:00:40 +01:00
Roberto Viola
730682522e fixing noblepro issue 2024-03-02 18:35:32 +01:00
Roberto Viola
ea206bfd56 removing zlib1.dll ? 2024-03-02 18:32:30 +01:00
Roberto Viola
894fffd108 Update main.yml 2024-03-01 16:17:35 +01:00
Roberto Viola
f4ab0673eb check_op 2024-03-01 14:38:22 +01:00
Roberto Viola
4ed46a975d Update main.yml 2024-03-01 14:19:15 +01:00
Roberto Viola
33469e8508 Update qdomyos-zwift.pri 2024-03-01 14:06:05 +01:00
Roberto Viola
be7ea33f9a Update qdomyos-zwift.pri 2024-03-01 13:47:39 +01:00
Roberto Viola
4416093212 Update main.yml 2024-03-01 13:24:58 +01:00
Roberto Viola
7e7bbe6f34 Update main.yml 2024-03-01 11:08:13 +01:00
Roberto Viola
43c740fb44 Update main.yml 2024-03-01 10:55:20 +01:00
Roberto Viola
1a368abc96 Update main.yml 2024-03-01 10:39:55 +01:00
Roberto Viola
9672ac1108 Update main.yml 2024-03-01 10:29:21 +01:00
Roberto Viola
136eef163d Update main.yml 2024-03-01 10:16:19 +01:00
Roberto Viola
795e9390ee Update bluetooth.cpp 2024-03-01 10:14:04 +01:00
Roberto Viola
ed0b5c7bbc Update main.yml 2024-03-01 10:09:19 +01:00
Roberto Viola
dd07927ad2 fixing iOS build 2024-03-01 10:02:42 +01:00
Roberto Viola
647d250f42 Update main.yml 2024-03-01 09:49:44 +01:00
Roberto Viola
ea38ac7ab4 Update main.yml 2024-03-01 09:36:36 +01:00
Roberto Viola
5110558895 fixing linux build 2024-03-01 09:33:30 +01:00
Roberto Viola
8708bd1f03 Update main.yml 2024-03-01 09:24:11 +01:00
Roberto Viola
9a882ad883 Update main.yml 2024-03-01 09:23:18 +01:00
Roberto Viola
2adcae3fc1 fixing ai build 2024-03-01 09:21:25 +01:00
Roberto Viola
d85f44285a Update main.yml 2024-03-01 09:19:43 +01:00
Roberto Viola
d8fc685839 Update main.yml 2024-03-01 09:15:02 +01:00
Roberto Viola
f7ee25e9fa Update main.yml 2024-03-01 09:08:03 +01:00
Roberto Viola
13630aa52b Update main.yml 2024-03-01 09:07:05 +01:00
Roberto Viola
ccca8c72b4 Update qdomyos-zwift.pri 2024-03-01 09:05:58 +01:00
Roberto Viola
f512a4a515 Update main.yml 2024-03-01 09:03:14 +01:00
Roberto Viola
2b6899a6c1 Update main.yml 2024-03-01 08:59:11 +01:00
Roberto Viola
1f006101da Update main.yml 2024-02-29 22:25:58 +01:00
Roberto Viola
d4382fb093 Update main.yml 2024-02-29 22:16:33 +01:00
Roberto Viola
b838ac76c4 Update main.yml 2024-02-29 21:57:10 +01:00
Roberto Viola
23c8628e4b Merge branch 'master' into zwift-api-windows 2024-02-29 17:15:37 +01:00
Roberto Viola
70fd6f9097 Update main.yml 2024-02-29 15:57:27 +01:00
Roberto Viola
d4c5853561 Update qdomyos-zwift.pri 2024-02-29 14:37:48 +01:00
Roberto Viola
6b825c643a Update main.yml 2024-02-29 13:55:52 +01:00
Roberto Viola
97856b752c Update trainprogram.cpp 2024-02-29 11:01:04 +01:00
Roberto Viola
5465e30d3d Merge branch 'master' into zwift-api-windows 2024-02-29 10:53:20 +01:00
Roberto Viola
d0f2ab2700 Update main.yml 2024-02-28 08:59:07 +01:00
Roberto Viola
24bf95a039 Update main.yml 2024-02-28 08:21:03 +01:00
Roberto Viola
4c6401e7b9 Update trainprogram.cpp 2024-02-27 17:37:14 +01:00
Roberto Viola
571fd08d8c starting to port the same on linux 2024-02-27 17:33:25 +01:00
Roberto Viola
c667974aa2 Update main.yml 2024-02-27 17:24:21 +01:00
Roberto Viola
4bb2012049 Update trainprogram.cpp 2024-02-27 16:52:18 +01:00
Roberto Viola
4ac43dc166 protobuf 2024-02-27 16:20:30 +01:00
Roberto Viola
d5e795f5d6 Update main.yml 2024-02-27 15:37:36 +01:00
Roberto Viola
eb52fcf6de Update main.yml 2024-02-27 15:26:18 +01:00
Roberto Viola
9f4ab19e28 include removing, using vcpkg 2024-02-27 15:15:42 +01:00
Roberto Viola
1cdfb1edef Update qdomyos-zwift.pri 2024-02-27 14:42:35 +01:00
Roberto Viola
d865887311 Update qdomyos-zwift.pri 2024-02-27 14:02:28 +01:00
Roberto Viola
598a2a6d3a Update main.yml 2024-02-27 13:40:34 +01:00
Roberto Viola
d1f51c47fb using vcpkg 2024-02-27 13:25:43 +01:00
Roberto Viola
58b4ddd07c Update main.yml 2024-02-27 12:46:37 +01:00
Roberto Viola
f6bdbfa40d Update main.yml 2024-02-27 12:41:30 +01:00
Roberto Viola
d36b28e8fe Update main.yml 2024-02-27 12:31:23 +01:00
Roberto Viola
f0541b7bbc Update main.yml 2024-02-27 12:25:36 +01:00
Roberto Viola
1beb7f69f3 vcpkg 2024-02-27 12:19:43 +01:00
Roberto Viola
cd0040cee3 adding submodule 2024-02-27 12:12:22 +01:00
Roberto Viola
b5f90bd8f7 adding vcpkg 2024-02-27 12:06:36 +01:00
Roberto Viola
f23dda50f0 Update qdomyos-zwift.pri 2024-02-27 11:34:19 +01:00
Roberto Viola
6603195996 building absl inside protobuf for debug 2024-02-27 11:13:00 +01:00
Roberto Viola
dadaece5c3 adding absl on msvc 2024-02-27 10:35:43 +01:00
Roberto Viola
183e7dc0b6 Revert "Update qdomyos-zwift.pri"
This reverts commit 7e12ca0476.
2024-02-27 09:25:26 +01:00
Roberto Viola
7e12ca0476 Update qdomyos-zwift.pri 2024-02-27 07:20:20 +01:00
Roberto Viola
cbf0c91a4b Update main.yml 2024-02-27 07:07:04 +01:00
Roberto Viola
187dd9afc6 Update main.yml 2024-02-27 06:53:34 +01:00
Roberto Viola
24078a9dc8 JLL T550 #2161 2024-02-26 18:14:13 +01:00
Roberto Viola
487671293f again msvc first 2024-02-26 18:07:31 +01:00
Roberto Viola
323d051c7c Merge branch 'master' into zwift-api-windows 2024-02-26 18:05:34 +01:00
Roberto Viola
49f6fa9694 trying to put the protobuf lib on the same src dir 2024-01-31 11:26:14 +01:00
Roberto Viola
f804c01fde Update qdomyos-zwift.pri 2024-01-31 10:59:31 +01:00
Roberto Viola
737f1faf47 trying to msvc first 2024-01-31 10:29:19 +01:00
Roberto Viola
a3c0bec761 Merge branch 'master' into zwift-api-windows 2024-01-31 10:26:24 +01:00
Roberto Viola
6621c83452 Update main.yml 2024-01-16 15:34:11 +01:00
Roberto Viola
efe0cbcb4c trying to fix mingw build 2024-01-16 15:02:24 +01:00
Roberto Viola
194ca721ab required lib for libabsl 2024-01-16 12:27:44 +01:00
Roberto Viola
9de579ffc7 builds on mingw 2024-01-16 12:23:59 +01:00
Roberto Viola
9f758ddbec Update main.yml 2024-01-04 09:50:50 +01:00
Roberto Viola
b059dd681b adding mingw libabsl 2024-01-04 09:40:03 +01:00
Roberto Viola
e4e49524b8 adding mingw64 binary 2024-01-04 09:12:11 +01:00
Roberto Viola
9413349277 Update main.yml 2024-01-04 08:49:18 +01:00
Roberto Viola
af0abb30a9 Update main.yml 2024-01-04 08:48:10 +01:00
Roberto Viola
0e8bab3f34 Update main.yml 2024-01-04 08:42:32 +01:00
Roberto Viola
cae67268a6 Update main.yml 2024-01-04 08:38:13 +01:00
Roberto Viola
c5e53a920c Update main.yml 2024-01-04 08:25:39 +01:00
Roberto Viola
06123b5347 Update main.yml 2024-01-04 08:22:34 +01:00
Roberto Viola
6663b2c057 Update main.yml 2024-01-03 16:58:00 +01:00
Roberto Viola
9b3462441a Update main.yml 2024-01-03 16:26:48 +01:00
Roberto Viola
58270e7bf9 Update main.yml 2024-01-03 16:25:49 +01:00
Roberto Viola
c3b04dcccc building protobuf 2024-01-03 16:24:50 +01:00
Roberto Viola
ffeb51eecc absl from mingw 2024-01-03 15:20:24 +01:00
Roberto Viola
8dd29e2f5f adding absl 2024-01-03 15:03:20 +01:00
Roberto Viola
5e5ee11b37 Update main.yml 2024-01-01 12:54:34 +01:00
Roberto Viola
5057ddb3ed Update main.yml 2024-01-01 12:52:34 +01:00
Roberto Viola
128812b5cd adding protobuf to src folder 2024-01-01 12:36:49 +01:00
Roberto Viola
10f7387cfb Update main.yml 2024-01-01 12:27:39 +01:00
Roberto Viola
6afc73f6fb Update qdomyos-zwift.pri 2024-01-01 12:06:07 +01:00
Roberto Viola
eeae2ee587 mingw-w64-x86_64-protobuf 2024-01-01 12:05:01 +01:00
Roberto Viola
c45c842f20 Update qdomyos-zwift.pri 2024-01-01 11:55:30 +01:00
Roberto Viola
6dd8f6c831 Update main.yml 2024-01-01 11:12:52 +01:00
Roberto Viola
8043b2807d first test on CI 2024-01-01 09:00:39 +01:00
5 changed files with 150 additions and 17 deletions

View File

@@ -88,10 +88,70 @@ jobs:
- uses: msys2/setup-msys2@v2
with:
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-qt5-webview
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-qt5-webview mingw-w64-x86_64-protobuf mingw-w64-x86_64-abseil-cpp mingw-w64-x86_64-zlib
msystem: mingw64
release: false
- name: Print MSYS2 Installation Path
run: echo $MSYSTEM_PREFIX
shell: msys2 {0}
- name: List Protocol Buffers Lib Files
run: ls $MINGW_PREFIX/lib/
shell: msys2 {0}
- name: List Protocol Buffers Lib Files
run: ls $MINGW_PREFIX/lib/libproto*.*
shell: msys2 {0}
- name: List Protocol Buffers Bin Files
run: ls $MINGW_PREFIX/bin/
shell: msys2 {0}
- name: Copy Protobuf Headers to a Repo Subfolder
run: cp -rv "$MINGW_PREFIX/include/google" "${GITHUB_WORKSPACE}/src/google/"
shell: msys2 {0}
- name: Copy Abseil Headers to a Repo Subfolder
run: cp -rv "$MINGW_PREFIX/include/absl" "${GITHUB_WORKSPACE}/src/absl/"
shell: msys2 {0}
- name: Compile Zwift Protopuf
run: protoc --proto_path="${GITHUB_WORKSPACE}/src/zwift-api/" --cpp_out="${GITHUB_WORKSPACE}/src/zwift-api/" zwift_messages.proto
shell: msys2 {0}
- name: Copy Protobuf Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/lib/libproto* "${GITHUB_WORKSPACE}/src/"
shell: msys2 {0}
- name: Copy Abseil Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/lib/libabsl_log_internal_message.dll.a "${GITHUB_WORKSPACE}/src/"
shell: msys2 {0}
- name: Copy Abseil Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/lib/libabsl_log_internal_check_op.dll.a "${GITHUB_WORKSPACE}/src/"
shell: msys2 {0}
- name: Copy Abseil Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/lib/libabsl_base.dll.a "${GITHUB_WORKSPACE}/src/"
shell: msys2 {0}
- name: Copy Protobuf Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/lib/libproto* "${GITHUB_WORKSPACE}/"
shell: msys2 {0}
- name: Copy Abseil Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/lib/libabsl_base.dll.a "${GITHUB_WORKSPACE}/"
shell: msys2 {0}
- name: Copy Abseil Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/lib/libabsl_log_internal_message.dll.a "${GITHUB_WORKSPACE}/"
shell: msys2 {0}
- name: Copy Abseil Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/lib/libabsl_log_internal_check_op.dll.a "${GITHUB_WORKSPACE}/"
shell: msys2 {0}
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.9
with:
@@ -134,7 +194,7 @@ jobs:
cd ..
- name: Build
run: |
run: |
qmake
make -j8
cd src/debug
@@ -146,6 +206,7 @@ jobs:
cp "C:/mingw64/bin/libwinpthread-1.dll" .
cp "C:/mingw64/bin/libgcc_s_seh-1.dll" .
cp "C:/mingw64/bin/libstdc++-6.dll" .
cp "C:/mingw64/bin/zlib1.dll" .
cp ../../../icons/iOS/iTunesArtwork@2x.png .
cp ../../AppxManifest.xml .
cp ../../windows/*.py .
@@ -162,6 +223,7 @@ jobs:
- name: Build without python
run: |
ls src/google/
qmake
make -j8
cd src/debug
@@ -173,6 +235,7 @@ jobs:
cp "C:/mingw64/bin/libwinpthread-1.dll" .
cp "C:/mingw64/bin/libgcc_s_seh-1.dll" .
cp "C:/mingw64/bin/libstdc++-6.dll" .
cp "C:/mingw64/bin/zlib1.dll" .
cp ../../../icons/iOS/iTunesArtwork@2x.png .
cp ../../AppxManifest.xml .
cp ../../../windows_openssl/*.* .
@@ -183,6 +246,14 @@ jobs:
#../../MSIX-Toolkit/WindowsSDK/10/10.0.20348.0/x64/makeappx.exe pack /d ../output/ /p qz
if: matrix.config.python == false
- name: Copy Abseil Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/bin/libabsl_*.* "${GITHUB_WORKSPACE}/src/debug/output/"
shell: msys2 {0}
- name: Copy Abseil Binaries to a Repo Subfolder
run: cp -v $MINGW_PREFIX/bin/libproto*.* "${GITHUB_WORKSPACE}/src/debug/output/"
shell: msys2 {0}
- name: patching qt for bluetooth
run: cp qt-patches/windows/5.15.2/binary/mingw64/*.* ${{ github.workspace }}/src/debug/output/
@@ -406,7 +477,7 @@ jobs:
path: "src/qthttpserver"
- name: Install packages required to run QZ inside workflow
run: sudo apt update -y && sudo apt-get install -y qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtquickcontrols2-5-dev libqt5bluetooth5 libqt5widgets5 libqt5positioning5 libqt5xml5 qtconnectivity5-dev qtpositioning5-dev libqt5charts5-dev libqt5charts5 libqt5networkauth5-dev libqt5websockets5* libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev
run: sudo apt update -y && sudo apt-get install -y qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtquickcontrols2-5-dev libqt5bluetooth5 libqt5widgets5 libqt5positioning5 libqt5xml5 qtconnectivity5-dev qtpositioning5-dev libqt5charts5-dev libqt5charts5 libqt5networkauth5-dev libqt5websockets5* libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev cmake protobuf-compiler libprotobuf-dev libabsl-dev
- name: Install Qt
uses: jurplel/install-qt-action@v3
@@ -421,6 +492,10 @@ jobs:
run: |
cp qHttpServerBin/5.15.2/headers/* src/qthttpserver/src/3rdparty/http-parser/
- name: compile zwift protobuf
run: |
protoc --proto_path=src/zwift-api/ --cpp_out=src/zwift-api/ zwift_messages.proto
- name: Build qthttpserver
run: |
cd src/qthttpserver
@@ -824,8 +899,24 @@ jobs:
echo "${{ secrets.cesiumkey }}" >> inner_templates/googlemaps/cesium-key.js
cd ..
- name: Clone vcpkg
run: git clone https://github.com/microsoft/vcpkg.git
working-directory: ${{ runner.workspace }}
- name: Bootstrap vcpkg
run: .\vcpkg\bootstrap-vcpkg.bat
working-directory: ${{ runner.workspace }}
- name: Install dependencies
run: |
.\vcpkg\vcpkg install protobuf protobuf-c abseil
working-directory: ${{ runner.workspace }}
- name: Build
run: |
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\lib\*.* -Destination . -Verbose
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\lib\*.* -Destination src/ -Verbose
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\include\* -Destination src/ -Recurse -Verbose
qmake
nmake
cd src/debug
@@ -839,6 +930,7 @@ jobs:
cp ../../windows/*.py .
cp ../../windows/*.bat .
cp ../../../windows_openssl/*.* .
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\bin\*.* -Destination . -Verbose
mkdir adb
mkdir python
Copy-Item -Path C:\hostedtoolcache\windows\Python\3.7.9\x64 -Destination python -Recurse
@@ -849,7 +941,10 @@ jobs:
if: matrix.config.python
- name: Build without python
run: |
run: |
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\lib\*.* -Destination . -Verbose
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\lib\*.* -Destination src/ -Verbose
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\include\* -Destination src/ -Recurse -Verbose
qmake
nmake
cd src/debug
@@ -860,10 +955,11 @@ jobs:
windeployqt --qmldir ../../ qdomyos-zwift.exe
cp "C:/mingw64/bin/libwinpthread-1.dll" .
cp "C:/mingw64/bin/libgcc_s_seh-1.dll" .
cp "C:/mingw64/bin/libstdc++-6.dll" .
cp "C:/mingw64/bin/libstdc++-6.dll" .
cp ../../../icons/iOS/iTunesArtwork@2x.png .
cp ../../AppxManifest.xml .
cp ../../../windows_openssl/*.* .
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\bin\*.* -Destination . -Verbose
mkdir adb
cp ../../adb/* adb/
cd ..
@@ -930,6 +1026,9 @@ jobs:
repository: qt-labs/qthttpserver
path: "src/qthttpserver"
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
@@ -973,8 +1072,24 @@ jobs:
echo "${{ secrets.cesiumkey }}" >> inner_templates/googlemaps/cesium-key.js
cd ..
- name: Clone vcpkg
run: git clone https://github.com/microsoft/vcpkg.git
working-directory: ${{ runner.workspace }}
- name: Bootstrap vcpkg
run: .\vcpkg\bootstrap-vcpkg.bat
working-directory: ${{ runner.workspace }}
- name: Install dependencies
run: |
.\vcpkg\vcpkg install protobuf protobuf-c abseil
working-directory: ${{ runner.workspace }}
- name: Build
run: |
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\lib\*.* -Destination . -Verbose
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\lib\*.* -Destination src/ -Verbose
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\include\* -Destination src/ -Recurse -Verbose
cd src
echo "#define AISERVER" >> aiserver.h
cd ..
@@ -993,6 +1108,7 @@ jobs:
cp ../../windows/zwift-workout-ai-server.py zwift-workout.py
cp ../../windows/*.bat .
cp ../../../windows_openssl/*.* .
Copy-Item -Path ${{ runner.workspace }}\vcpkg\installed\x64-windows\bin\*.* -Destination . -Verbose
mkdir adb
cp ../../adb/* adb/
cd ..

View File

@@ -2163,25 +2163,13 @@ void horizontreadmill::serviceScanDone(void) {
initRequest = false;
firstStateChanged = 0;
auto services_list = m_control->services();
QBluetoothUuid ftmsService((quint16)0x1826);
QBluetoothUuid CustomService((quint16)0xFFF0);
for (const QBluetoothUuid &s : qAsConst(services_list)) {
#ifdef Q_OS_WIN
if (s == ftmsService || s == CustomService)
#endif
{
qDebug() << s << "discovering...";
gattCommunicationChannelService.append(m_control->createServiceObject(s));
connect(gattCommunicationChannelService.constLast(), &QLowEnergyService::stateChanged, this,
&horizontreadmill::stateChanged);
gattCommunicationChannelService.constLast()->discoverDetails();
}
#ifdef Q_OS_WIN
else {
qDebug() << s << "NOT discovering!";
}
#endif
}
}

View File

@@ -30,6 +30,11 @@ CONFIG += qmltypes
#win32: CONFIG += webengine
#unix:!android: CONFIG += webengine
win32:DEFINES += _ITERATOR_DEBUG_LEVEL=0
win32:!mingw:LIBS += -llibprotobuf -llibprotoc -labseil_dll -llibprotobuf-lite -L$$PWD
win32:mingw:LIBS += -lprotobuf -lprotoc -labsl_base -lprotobuf-lite -labsl_log_internal_message -labsl_log_internal_check_op -L$$PWD
unix:!android:!ios:LIBS += -lprotobuf-lite -lprotobuf -labsl_base
QML_IMPORT_NAME = org.cagnulein.qdomyoszwift
QML_IMPORT_MAJOR_VERSION = 1
# Additional import path used to resolve QML modules in Qt Creator's code model
@@ -281,6 +286,10 @@ zwiftworkout.cpp
macx: SOURCES += macos/lockscreen.mm
!ios: SOURCES += mainwindow.cpp charts.cpp
#zwift api
unix:!android:!ios: SOURCES += zwift-api/zwift_messages.pb.cc
win32: SOURCES += zwift-api/zwift_messages.pb.cc
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin

View File

@@ -13,6 +13,9 @@
#include "windows_zwift_incline_paddleocr_thread.h"
#include "windows_zwift_workout_paddleocr_thread.h"
#endif
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
#include "zwift-api/zwift_messages.pb.h"
#endif
#include "localipaddress.h"
using namespace std::chrono_literals;
@@ -631,6 +634,7 @@ void trainprogram::scheduler() {
if(zwift_counter++ >= (timeout - 1)) {
zwift_counter = 0;
QByteArray bb = zwift_world->playerStatus(zwift_player_id);
qDebug() << " ZWIFT API PROTOBUF << " + bb.toHex(' ');
#ifdef Q_OS_IOS
#ifndef IO_UNDER_QT
h->zwift_api_decodemessage_player(bb.data(), bb.length());
@@ -654,6 +658,18 @@ void trainprogram::scheduler() {
float alt = QAndroidJniObject::callStaticMethod<float>("org/cagnulen/qdomyoszwift/ZwiftAPI", "getAltitude", "()F");
float distance = QAndroidJniObject::callStaticMethod<float>("org/cagnulen/qdomyoszwift/ZwiftAPI", "getDistance", "()F");
#elif !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
PlayerState state;
float alt = 0;
float distance = 0;
if (state.ParseFromArray(bb.constData(), bb.size())) {
// Parsing riuscito, ora puoi accedere ai dati in `state`
alt = state.altitude();
distance = state.distance();
} else {
// Errore durante il parsing
qDebug() << "Error parsing PlayerState";
}
#else
float alt = 0;
float distance = 0;

View File

@@ -15,6 +15,10 @@
#include "zwift-api/PlayerStateWrapper.h"
#include "zwift-api/zwift_client_auth.h"
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
#include "zwift-api/zwift_messages.pb.h"
#endif
class trainrow {
public:
QTime duration = QTime(0, 0, 0, 0);