From cd60ce49567a7113133f4c4cfe62bdaadf108d0e Mon Sep 17 00:00:00 2001 From: CrSjimo Date: Sat, 5 Oct 2024 03:05:38 +0800 Subject: [PATCH] update linux workflow --- .github/actions/init-build/action.yml | 6 +++++- .../workflows/generate-bundles-and-release.yml | 15 +++++++++++++++ src/share/install.cmake | 6 +++++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/actions/init-build/action.yml b/.github/actions/init-build/action.yml index 35d34ac..ff89059 100644 --- a/.github/actions/init-build/action.yml +++ b/.github/actions/init-build/action.yml @@ -31,7 +31,11 @@ runs: shell: pwsh run: | sudo apt update - sudo apt-get -y install ninja-build libasound2-dev libxrandr-dev libxinerama-dev libxrender-dev libxcomposite-dev libxcursor-dev + sudo apt-get -y install ` + ninja-build ` + libasound2-dev libatopology-dev ` + libxrandr-dev libxinerama-dev libxrender-dev libxcomposite-dev libxcursor-dev ` + libgl1-mesa-dev libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libzstd-dev Write-Output VCPKG_TRIPLET=x64-linux >> $env:GITHUB_ENV Write-Output VCPKG_TRIPLET_STATIC=x64-linux >> $env:GITHUB_ENV Write-Output QT_ARCH=gcc_64 >> $env:GITHUB_ENV diff --git a/.github/workflows/generate-bundles-and-release.yml b/.github/workflows/generate-bundles-and-release.yml index ec29ae0..7cc680e 100644 --- a/.github/workflows/generate-bundles-and-release.yml +++ b/.github/workflows/generate-bundles-and-release.yml @@ -164,6 +164,21 @@ jobs: run: | cd scripts/setup/linux mv $env:DIFFSCOPE_INSTALLED_DIR DiffScope + + Push-Location DiffScope/lib + # Just steal the exclude list of dynamic libraries from AppImage + $excludeListUrl = "https://raw.githubusercontent.com/AppImageCommunity/pkg2appimage/04af461f471a2bf49671057408e0313f1f731d4b/excludelist" + $excludeList = (Invoke-WebRequest $excludeListUrl).Content.split("`n") + if ($excludeList.Count -eq 0) { + exit 1 + } + foreach ($file in ($excludeList | ForEach-Object { ($_ -replace '\s*#.*$', '').Trim() } | Where-Object { $_ -ne "" })) { + if (Test-Path $file) { + Remove-Item $file + } + } + Pop-Location + mkdir "DiffScope Bridge" Invoke-WebRequest -Uri "https://raw.githubusercontent.com/CrSjimo/diffscope-ci-tools-mirror/refs/heads/main/gpl-3.0.rtf" -OutFile "DiffScope Bridge/gpl-3.0.rtf" mv $env:DIFFSCOPE_BRIDGE_ARTEFACTS_DIR/VST3/*.vst3 "DiffScope Bridge" diff --git a/src/share/install.cmake b/src/share/install.cmake index a3d2255..bcc34a0 100644 --- a/src/share/install.cmake +++ b/src/share/install.cmake @@ -36,7 +36,11 @@ elseif(APPLE) ) else() # Linux - set(_) + list(APPEND _plugins + platforms/qxcb + platforminputcontexts/* + xcbglintegrations/* + ) endif() if(WIN32)