fix(apps/installer): windows setup (#23007)

This commit is contained in:
killerwife
2025-09-24 01:46:07 +02:00
committed by GitHub
parent 8e6d35c9b2
commit 3091733dd5
2 changed files with 43 additions and 35 deletions

View File

@@ -1,7 +1,11 @@
#!/usr/bin/env bash
# Set SUDO variable - one liner
SUDO=$([ "$EUID" -ne 0 ] && echo "sudo" || echo "")
if [[ "$OSTYPE" == "msys"* ]]; then
SUDO=""
else
SUDO=$([ "$EUID" -ne 0 ] && echo "sudo" || echo "")
fi
function inst_configureOS() {
echo "Platform: $OSTYPE"

View File

@@ -35,6 +35,7 @@ menu_items=(
"install-deps|d|Configure OS dep"
"pull|u|Update Repository"
"reset|r|Reset & Clean Repository"
"setup-db|r|Install db only"
"compiler|c|Run compiler tool"
"module|m|Module manager (search/install/update/remove)"
"client-data|gd|download client data from github repository (beta)"
@@ -65,6 +66,9 @@ function handle_menu_command() {
"reset")
inst_resetRepo
;;
"setup-db")
inst_dbCreate
;;
"compiler")
bash "$AC_PATH_APPS/compiler/compiler.sh" "$@"
;;