Remove example client.ovpn from gs-warp and add automatic rootfs/prebuilt dependency checks to build scripts
This commit is contained in:
1 parent
2030201539
commit
49830e137d
13 files changed
+318
-415
No files matched your search
@@ -39,6 +39,53 @@ case "$DEVICE" in
|
||||
;;
|
||||
esac
|
||||
|
||||
if command -v docker >/dev/null 2>&1; then
|
||||
echo "[0/4] Verifying prebuilt artifacts..."
|
||||
if [ ! -f "$BASE_DIR/prebuilt/sxmo-x11/usr/lib/libneoui.so" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/sxmo-x11/usr/bin/dwm" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/sxmo-x11/usr/bin/st" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/sxmo-x11/usr/lib/dwm/plugins/dmenu.so" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/sxmo-x11/usr/lib/dwm/plugins/privacy.so" ]; then
|
||||
echo " -> Missing prebuilt sxmo-x11/NeoUI artifacts; running scripts/build-sxmo-x11.sh..."
|
||||
"$BASE_DIR/scripts/build-sxmo-x11.sh"
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/prebuilt/games/usr/bin/snake" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/games/usr/bin/tetris" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/games/usr/bin/scoundrel" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/games/usr/bin/gambatte" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/games/usr/bin/remedy" ]; then
|
||||
echo " -> Missing prebuilt games/emulators; running scripts/build-games.sh..."
|
||||
"$BASE_DIR/scripts/build-games.sh"
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/prebuilt/gsocket/usr/bin/gs-netcat" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/gsocket/usr/lib/gsocket_dso.so.0" ]; then
|
||||
echo " -> Missing prebuilt gsocket binaries; running scripts/build-gsocket.sh..."
|
||||
"$BASE_DIR/scripts/build-gsocket.sh"
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/prebuilt/fcitx5-t9/usr/lib/fcitx5/libt9.so" ]; then
|
||||
echo " -> Missing prebuilt fcitx5-t9 engine; running scripts/build-fcitx5-t9.sh..."
|
||||
"$BASE_DIR/scripts/build-fcitx5-t9.sh"
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/prebuilt/xlibre/usr/bin/Xorg" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/xlibre/usr/lib/xorg/modules/xlibre-25/drivers/modesetting_drv.so" ]; then
|
||||
echo " -> Missing prebuilt Xlibre server/drivers; running scripts/build-xlibre.sh..."
|
||||
"$BASE_DIR/scripts/build-xlibre.sh"
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/dtbs/$DTB_FILE" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/drm/msm.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/xt_owner.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/nft_redir.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/leds/leds-msm8905-torch.ko.zst" ] || \
|
||||
[ ! -f "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/camera/msm8905-cam.ko.zst" ]; then
|
||||
echo " -> Missing prebuilt kernel modules or DTBs; running scripts/build-kernel-audio.sh..."
|
||||
"$BASE_DIR/scripts/build-kernel-audio.sh"
|
||||
fi
|
||||
if [ ! -f "$BASE_DIR/prebuilt/bantam/bantam" ]; then
|
||||
echo " -> Missing prebuilt bantam binary; running scripts/build-bantam.sh..."
|
||||
"$BASE_DIR/scripts/build-bantam.sh"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "[1/4] Installing Bananarchy rootfs overlay (artwork, branding, Sxmo 240x320, UCM, udev)..."
|
||||
rm -f "$TARGET_ROOTFS/usr/bin/bantam" "$TARGET_ROOTFS/usr/local/bin/bantam" "$TARGET_ROOTFS/etc/doas.d/wheel.conf"
|
||||
cp -af "$BASE_DIR/overlay/rootfs/." "$TARGET_ROOTFS/"
|
||||
|
||||
@@ -8,6 +8,11 @@ if [ -e "$ROOTFS_DIR" ]; then
|
||||
ROOTFS_DIR="$(realpath "$ROOTFS_DIR")"
|
||||
fi
|
||||
|
||||
if [ ! -f "$BASE_DIR/prebuilt/sxmo-x11/usr/lib/libneoui.so" ]; then
|
||||
echo "[auto-deps] Missing libneoui.so; running scripts/build-sxmo-x11.sh first..."
|
||||
"$BASE_DIR/scripts/build-sxmo-x11.sh"
|
||||
fi
|
||||
|
||||
exec docker run --rm --network=host \
|
||||
-e HOST_UID="$(id -u)" \
|
||||
-e HOST_GID="$(id -g)" \
|
||||
|
||||
@@ -55,14 +55,20 @@ configure_common_rootfs() {
|
||||
|
||||
cp /etc/apk/repositories "$ROOTFS/etc/apk/repositories"
|
||||
|
||||
echo " -> Ensuring fcitx5-gtk3 and Bananarchy development/scripting packages are installed in $ROOTFS..."
|
||||
echo " -> Ensuring fcitx5-gtk3 and Bananarchy development/scripting/privacy/multimedia packages are installed in $ROOTFS..."
|
||||
apk --root "$ROOTFS" --arch armv7 add --no-scripts \
|
||||
bash \
|
||||
fcitx5 \
|
||||
fcitx5-gtk3 \
|
||||
font-fira-code \
|
||||
font-noto \
|
||||
font-noto-emoji \
|
||||
git \
|
||||
gcc \
|
||||
g++ \
|
||||
musl-dev \
|
||||
make \
|
||||
mandoc \
|
||||
coreutils \
|
||||
bc \
|
||||
ed \
|
||||
@@ -78,6 +84,7 @@ configure_common_rootfs() {
|
||||
lua5.5 \
|
||||
lua5.5-dev \
|
||||
yabasic \
|
||||
yabasic-doc \
|
||||
perl \
|
||||
perl-io-socket-ssl \
|
||||
tcl \
|
||||
@@ -85,6 +92,23 @@ configure_common_rootfs() {
|
||||
tcl-tls \
|
||||
sqlite \
|
||||
sqlite-tcl \
|
||||
tor \
|
||||
openvpn \
|
||||
wireguard-tools \
|
||||
wireguard-tools-wg \
|
||||
wireguard-tools-wg-quick \
|
||||
iptables \
|
||||
ip6tables \
|
||||
iproute2 \
|
||||
webkit2gtk-4.1 \
|
||||
libwpe \
|
||||
libwpebackend-fdo \
|
||||
gst-plugins-good \
|
||||
gst-plugins-bad \
|
||||
gst-libav \
|
||||
mesa-demos \
|
||||
mesa-utils \
|
||||
scrot \
|
||||
modemmanager \
|
||||
modemmanager-udev \
|
||||
mobile-broadband-provider-info \
|
||||
|
||||
Reference in new issue
Block a user