-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix webengine deployment for appimage and Windows build
Closes #489
- Loading branch information
Showing
11 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,7 @@ jobs: | |
version: "6.7.*" | ||
host: 'windows' | ||
target: 'desktop' | ||
modules: 'qtwebengine qtpositioning qtwebchannel qtwebsockets' | ||
modules: 'qtwebengine qtpositioning qtwebchannel qtwebsockets qtserialport' | ||
|
||
- name: Setup ffmpeg | ||
run: | | ||
|
@@ -174,6 +174,7 @@ jobs: | |
run: | | ||
mkdir chiaki-ng-Win | ||
cp build\gui\chiaki.exe chiaki-ng-Win | ||
cp scripts\qtwebengine_import.qml gui\src\qml\ | ||
cp "${{ github.workspace }}\vcpkg_installed\${{ env.triplet }}\bin\libcrypto-*-x64.dll" chiaki-ng-Win | ||
cp "${{ github.workspace }}\vcpkg_installed\${{ env.triplet }}\bin\libssl-*-x64.dll" chiaki-ng-Win | ||
cp "${{ github.workspace }}\vcpkg_installed\${{ env.triplet }}\bin\SDL2.dll" chiaki-ng-Win | ||
|
@@ -191,8 +192,7 @@ jobs: | |
cp "${{ github.workspace }}\${{ env.dep_folder }}\bin\libplacebo-*.dll" chiaki-ng-Win | ||
cp "${{ github.workspace }}\${{ env.dep_folder }}\bin\shaderc_shared.dll" chiaki-ng-Win | ||
cp "${{ github.workspace }}\${{ env.dep_folder }}\bin\spirv-cross-c-shared.dll" chiaki-ng-Win | ||
echo "import QtWebEngine; WebEngineView {}" > "$PWD/gui/src/qml/qtwebengine_import.qml" | ||
windeployqt.exe --no-translations --qmldir=gui/src/qml/ chiaki-ng-Win\chiaki.exe | ||
windeployqt.exe --no-translations --qmldir=gui\src\qml --release chiaki-ng-Win\chiaki.exe | ||
- name: Compile .ISS to .EXE Installer | ||
uses: Minionguyjpro/[email protected] | ||
|
@@ -245,7 +245,7 @@ jobs: | |
- name: Deploy chiaki-ng | ||
run: | | ||
cp -a build/gui/chiaki.app chiaki-ng.app | ||
echo "import QtWebEngine; WebEngineView {}" > "$PWD/gui/src/qml/qtwebengine_import.qml" | ||
cp scripts/qtwebengine_import.qml gui/src/qml/ | ||
$(brew --prefix)/opt/qt@6/bin/macdeployqt chiaki-ng.app -qmldir="$PWD/gui/src/qml" -libpath=$(brew --prefix)/lib | ||
mkdir -p chiaki-ng.app/Contents/Resources/vulkan/icd.d | ||
wget https://github.com/KhronosGroup/MoltenVK/releases/download/v1.2.9/MoltenVK-macos.tar && tar xf MoltenVK-macos.tar | ||
|
@@ -289,7 +289,7 @@ jobs: | |
- name: Add QmlWebEngine Import | ||
working-directory: chiaki-ng | ||
run: | | ||
echo "import QtWebEngine; WebEngineView {}" > "$PWD/gui/src/qml/qtwebengine_import.qml" | ||
cp scripts/qtwebengine_import.qml gui/src/qml/ | ||
- name: Run build script | ||
working-directory: chiaki-ng/scripts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ jobs: | |
version: "6.7.*" | ||
host: 'windows' | ||
target: 'desktop' | ||
modules: 'qtwebengine qtpositioning qtwebchannel qtwebsockets' | ||
modules: 'qtwebengine qtpositioning qtwebchannel qtwebsockets qtserialport' | ||
|
||
- name: Setup ffmpeg | ||
run: | | ||
|
@@ -153,6 +153,7 @@ jobs: | |
run: | | ||
mkdir chiaki-ng-Win | ||
cp build\gui\chiaki.exe chiaki-ng-Win | ||
cp scripts\qtwebengine_import.qml gui\src\qml\ | ||
cp "${{ github.workspace }}\vcpkg_installed\${{ env.triplet }}\bin\libcrypto-*-x64.dll" chiaki-ng-Win | ||
cp "${{ github.workspace }}\vcpkg_installed\${{ env.triplet }}\bin\libssl-*-x64.dll" chiaki-ng-Win | ||
cp "${{ github.workspace }}\vcpkg_installed\${{ env.triplet }}\bin\SDL2.dll" chiaki-ng-Win | ||
|
@@ -170,8 +171,7 @@ jobs: | |
cp "${{ github.workspace }}\${{ env.dep_folder }}\bin\libplacebo-*.dll" chiaki-ng-Win | ||
cp "${{ github.workspace }}\${{ env.dep_folder }}\bin\shaderc_shared.dll" chiaki-ng-Win | ||
cp "${{ github.workspace }}\${{ env.dep_folder }}\bin\spirv-cross-c-shared.dll" chiaki-ng-Win | ||
echo "import QtWebEngine; WebEngineView {}" > "$PWD/gui/src/qml/qtwebengine_import.qml" | ||
windeployqt.exe --no-translations --qmldir=gui/src/qml/ chiaki-ng-Win\chiaki.exe | ||
windeployqt.exe --no-translations --qmldir=gui\src\qml --release chiaki-ng-Win\chiaki.exe | ||
- name: Compile .ISS to .EXE Installer | ||
uses: Minionguyjpro/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import QtWebEngine; WebEngineView {} |