Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

[win] Make msix build less verbose by default

Dmitry Kazakovbf99d246eeb3
diff --git a/packaging/windows/msix/build_msix.py b/packaging/windows/msix/build_msix.py
index ab9652846a..880f3bc639 100644
--- a/packaging/windows/msix/build_msix.py
+++ b/packaging/windows/msix/build_msix.py
@@ -22,6 +22,8 @@ if environ.get('KRITA_INSTALLER'):
print("ERROR: KRITA_SHELLEX must not be set if using KRITA_INSTALLER.")
sys.exit(1)
+useVerbosePackagingLog = (os.environ.get('KRITACI_VERBOSE_PACKAGING', '0').lower() in ['true', '1', 't', 'y', 'yes'])
+
# Subroutines
def find_on_path(variable, executable):
@@ -231,7 +233,7 @@ The arguments stands for:
/p <output package name>: Specifies the app package or bundle.
"""
-commandToRun = fr'"{environ["MAKEAPPX"]}" pack /v /f "{environ["OUTPUT_DIR"]}\mapping.txt" /p "{environ["OUTPUT_DIR"]}\krita.msix" /o'
+commandToRun = fr'"{environ["MAKEAPPX"]}" pack {"/v" if useVerbosePackagingLog else ""} /f "{environ["OUTPUT_DIR"]}\mapping.txt" /p "{environ["OUTPUT_DIR"]}\krita.msix" /o'
try:
subprocess.check_call(commandToRun)
except subprocess.CalledProcessError: