mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-03-23 07:23:10 +08:00
Protect env var reading and update packages first in install script
This is required for a fresh install with WSL2 on Windows
This commit is contained in:
10
install.sh
10
install.sh
@@ -86,6 +86,16 @@ then
|
||||
BASHRC_SOURCE_VENV=false
|
||||
fi
|
||||
|
||||
# ── Update packages list ──────────────────────────────────────────────────
|
||||
|
||||
print_header "Step 0/3 — Update packages list"
|
||||
|
||||
if run_step "APT Update" sudo apt update; then
|
||||
print_success "Packages list updated successfully"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# ── Install Qt dependencies ──────────────────────────────────────────────────
|
||||
|
||||
|
||||
@@ -4,8 +4,11 @@ import os
|
||||
import sys
|
||||
|
||||
# Make sure to use Wayland for high DPI screens
|
||||
if os.environ["XDG_SESSION_TYPE"] == "wayland":
|
||||
os.environ["QT_QPA_PLATFORM"] = "wayland;xcb"
|
||||
try:
|
||||
if os.environ["XDG_SESSION_TYPE"] == "wayland":
|
||||
os.environ["QT_QPA_PLATFORM"] = "wayland;xcb"
|
||||
except:
|
||||
pass
|
||||
|
||||
dirname = os.path.dirname(os.path.abspath(__file__))
|
||||
PAPARAZZI_HOME = os.getenv("PAPARAZZI_HOME",dirname)
|
||||
|
||||
Reference in New Issue
Block a user