Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-02-17 12:41:37 +03:00
parent 90ed98d59f
commit fde9b4469f

View File

@@ -30,7 +30,31 @@ run_deploy() {
echo "== BUILD UI =="
cd ui
npm ci --no-audit --no-fund
npm ci --no-audit --no-fund --include=optional
# Bazı sunucularda npm optional paketleri atlıyor; bu durumda
# sass --embedded çalışamadığı için Quasar build EPIPE ile düşüyor.
if ! ./node_modules/.bin/sass --embedded --version >/dev/null 2>&1; then
echo "sass-embedded binary yok, platform paketi kuruluyor..."
case "$(uname -m)" in
x86_64|amd64) SASS_EMBEDDED_PKG="sass-embedded-linux-x64@1.93.2" ;;
aarch64|arm64) SASS_EMBEDDED_PKG="sass-embedded-linux-arm64@1.93.2" ;;
armv7l|armhf) SASS_EMBEDDED_PKG="sass-embedded-linux-arm@1.93.2" ;;
*)
echo "Desteklenmeyen mimari: $(uname -m). Sass embedded paketi atlandi."
SASS_EMBEDDED_PKG=""
;;
esac
if [[ -n "${SASS_EMBEDDED_PKG}" ]]; then
npm i --no-save --no-audit --no-fund "$SASS_EMBEDDED_PKG"
./node_modules/.bin/sass --embedded --version >/dev/null 2>&1 || {
echo "sass-embedded hala aktif degil."
return 1
}
fi
fi
npm run build
echo "== RESTART SERVICE =="