Files
lnxgit/scripts/wsl_bootstrap.sh
LnxGit 79450cfadf 初始提交:LnxGit —— PySide6 + QML 的 Android Git 客户端
功能:
- 基于 dulwich 的完整 Git 操作(克隆/提交/分支/标签/远端/储藏/重置/拣选/blame 等)
- 11 个 QML 页面、深色浅色主题、后台线程执行与进度日志
- 支持 HTTPS 令牌与 SSH 认证,认证失败自动弹窗并可保存凭据
- WSL 内的 Android 打包脚本(pyside6-android-deploy)
- 冒烟测试、端到端测试、QML 加载检查与截图工具
2026-09-22 11:42:01 +08:00

30 lines
759 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# 在 WSL (Ubuntu) 中安装构建 Android APK 所需的系统依赖。
#
# 用法:sudo bash scripts/wsl_bootstrap.sh
set -euo pipefail
if [ "$(id -u)" -ne 0 ]; then
echo "请用 root 运行:sudo bash scripts/wsl_bootstrap.sh"
exit 1
fi
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get install -y software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt-get update -y
apt-get install -y \
python3.11 python3.11-venv python3.11-dev python3.11-distutils \
openjdk-17-jdk \
zip unzip curl wget git \
autoconf automake libtool pkg-config cmake \
zlib1g-dev libssl-dev libffi-dev ccache
echo
echo "系统依赖安装完成:"
python3.11 --version
java -version 2>&1 | head -1