Disable qml cache in flatpak

This commit is contained in:
Bart De Vries 2023-02-27 16:39:42 +01:00
parent 8207b6af08
commit 43087be21a
2 changed files with 14 additions and 0 deletions

View File

@ -146,10 +146,18 @@
{ {
"name": "kasts", "name": "kasts",
"buildsystem": "cmake-ninja", "buildsystem": "cmake-ninja",
"post-install": [
"mv /app/bin/{kasts,kasts-bin}",
"install .patches/run_kasts.sh /app/bin/kasts"
],
"sources": [ "sources": [
{ {
"type": "dir", "type": "dir",
"path": "." "path": "."
},
{
"type": "file",
"path": ".patches/run_kasts.sh"
} }
] ]
} }

6
.patches/run_kasts.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2023 Bart De Vries <bart@mogwai.be>
# SPDX-License-Identifier: BSD-2-Clause
export QML_DISABLE_DISK_CACHE=1
exec kasts-bin "$@"