From 6331f9f17ab472ecf133f718d44ce287ce6bf82e Mon Sep 17 00:00:00 2001 From: s8n-ru <279801990+s8n-ru@users.noreply.github.com> Date: Thu, 30 Apr 2026 15:45:59 +0100 Subject: [PATCH] ci: portable.txt in release + strip any user-data files --- .github/workflows/build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16f3044..4c17d7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,7 +98,23 @@ jobs: run: cmake --build build -j --config Release - name: Install - run: cmake --install build --config Release + run: | + cmake --install build --config Release + cmake --install build --config Release --component portable + + - name: Strip user data (safety) + shell: bash + run: | + find install -type f \( \ + -name "accounts.json" -o \ + -name "*.cfg" -prune -o \ + -name "launcher.cfg" -o \ + -name "prismlauncher.cfg" -o \ + -name "instance.cfg" \ + \) -delete 2>/dev/null || true + rm -rf install/{instances,metacache,cache,logs,iconthemes,catpacks,skins,assets/objects,libraries,java} + # keep portable.txt + qtlogging.ini + true - name: Deploy Qt (Linux) if: runner.os == 'Linux'