ci: portable.txt in release + strip any user-data files
Some checks failed
Some checks failed
This commit is contained in:
parent
32b74856d2
commit
6331f9f17a
1 changed files with 17 additions and 1 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue