Skip to content

Commit

Permalink
CI: no longer use static qt build
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Jul 21, 2024
1 parent 4edfbf6 commit 22f7ebf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/windows-msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ jobs:
pacboy: >-
toolchain:p ninja:p cmake:p extra-cmake-modules:p
jasper:p icoutils:p
qt6-static:p libopenmpt:p portaudio:p
qt6:p libopenmpt:p portaudio:p
- name: Build pineapple-tracker-player
run: |
mkdir build && cd build
cmake .. -DCMAKE_PREFIX_PATH="${MINGW_PREFIX}/qt6-static" -DCMAKE_INSTALL_PREFIX="package_workspace" -G Ninja
cmake .. -DCMAKE_INSTALL_PREFIX="package_workspace" -G Ninja
cmake --build . -j
cmake --build . --target install/strip
- name: Prepare for package
run: |
rm -rf /c/Windows/SYSTEM32/libssl-* || true
rm -rf /c/Windows/SYSTEM32/libcrypto-* || true
cd build/package_workspace/bin
ldd ./pineapple-tracker-player-quick.exe > deps-trackerplayer.txt
bash -c 'while read -r line; do path=$(cut -d" " -f3 <<<$line); cp -v $path ./; done <<<$(grep ".*mingw.*bin" deps-trackerplayer.txt); exit 0'
windeployqt6 --no-translations --no-opengl-sw --no-system-d3d-compiler ./pineapple-tracker-player-quick.exe
windeployqt6 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler ./pineapple-tracker-player.exe
# rm deps-trackerplayer.txt
# done
cd ../../
Expand Down
20 changes: 12 additions & 8 deletions quick/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,18 @@ QML_FILES
components/InstrumentItem.qml
)

qt_add_translations(pineapple-tracker-player-quick
TS_FILES
translations/pineapple-tracker-player.ts
translations/pineapple-tracker-player_nl.ts
translations/pineapple-tracker-player_pl.ts
translations/pineapple-tracker-player_tr.ts
translations/pineapple-tracker-player_zh_CN.ts
)
# https://forum.qt.io/topic/155823/cmake-does-not-work-with-qt-6-7-0
# https://bugreports.qt.io/browse/QTBUG-126167
if (Qt6LinguistTools_VERSION VERSION_LESS 6.7.0 OR Qt6LinguistTools_VERSION VERSION_GREATER 6.7.2)
qt_add_translations(pineapple-tracker-player-quick
TS_FILES
translations/pineapple-tracker-player.ts
translations/pineapple-tracker-player_nl.ts
translations/pineapple-tracker-player_pl.ts
translations/pineapple-tracker-player_tr.ts
translations/pineapple-tracker-player_zh_CN.ts
)
endif()

qt_add_resources(pineapple-tracker-player-quick resources.qrc
PREFIX "/icons"
Expand Down

0 comments on commit 22f7ebf

Please sign in to comment.