ci: portable.txt in release + strip any user-data files
Some checks failed
Build / build (tar.gz, linux-x64, ubuntu-latest) (push) Has been cancelled
Build / build (zip, macos-arm64, macos-14) (push) Has been cancelled
Build / build (zip, windows-x64, windows-latest) (push) Has been cancelled
Build / release (push) Has been cancelled

This commit is contained in:
s8n-ru 2026-04-30 15:45:59 +01:00
parent 32b74856d2
commit 6331f9f17a

View file

@ -98,7 +98,23 @@ jobs:
run: cmake --build build -j --config Release run: cmake --build build -j --config Release
- name: Install - 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) - name: Deploy Qt (Linux)
if: runner.os == 'Linux' if: runner.os == 'Linux'