From 83ad3c904d0cff41b98693a05d9ae0096e946b09 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Sun, 6 Dec 2026 10:17:27 +0300 Subject: [PATCH] add configs files --- .gitignore | 5 ----- .qmllint.json | 5 +++++ .qmlls.ini | 2 ++ compile_commands.json | 1 + qrun.sh | 51 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 .qmllint.json create mode 100644 .qmlls.ini create mode 120000 compile_commands.json create mode 100755 qrun.sh diff --git a/.gitignore b/.gitignore index 5b2a562..026fa99 100644 --- a/.gitignore +++ b/.gitignore @@ -34,7 +34,6 @@ Thumbs.db *.rc /.qmake.cache /.qmake.stash -**/.qmlls.ini # qtcreator generated files *.pro.user* @@ -85,12 +84,8 @@ CMakeLists.txt.user* # Локальные кэши и файлы инструментов /.cache/ -/compile_commands.json /packaging/ /*.md -/*.sh -.qmllint.json -.qmlls.ini /imported* !README.md !**/README.md diff --git a/.qmllint.json b/.qmllint.json new file mode 100644 index 0000000..8a04f3e --- /dev/null +++ b/.qmllint.json @@ -0,0 +1,5 @@ +{ + "Rules": { + "import": "disabled" + } +} diff --git a/.qmlls.ini b/.qmlls.ini new file mode 100644 index 0000000..c962144 --- /dev/null +++ b/.qmlls.ini @@ -0,0 +1,2 @@ +[General] +buildDir=/mnt/raid/projects/qt/archpack/build/Desktop_Qt_6_12_0_Debug/archpack diff --git a/compile_commands.json b/compile_commands.json new file mode 120000 index 0000000..bf63a3f --- /dev/null +++ b/compile_commands.json @@ -0,0 +1 @@ +build/Desktop_Qt_6_12_0_Debug/compile_commands.json \ No newline at end of file diff --git a/qrun.sh b/qrun.sh new file mode 100755 index 0000000..3de6dc0 --- /dev/null +++ b/qrun.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash + +set -euo pipefail + +BUILD_DIR="${ZED_WORKTREE_ROOT:-$(pwd)}/build/Desktop_Qt_6_12_0_Debug" +APP="apparchpack" + +build() { + echo "==> Сборка: $BUILD_DIR" + cmake --build "$BUILD_DIR" --target all +} + +run() { + local exe="$BUILD_DIR/$APP" + if [[ ! -x "$exe" ]]; then + echo "Ошибка: исполняемый файл не найден: $exe" >&2 + exit 1 + fi + echo "==> Запуск: $exe" + exec "$exe" +} + +usage() { + cat <&2; usage; exit 1 ;; + esac +done + +case "$MODE" in + build) build ;; + run) run ;; + both) build; run ;; +esac