This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

character / scripts / miniview-launch.sh
1.4 kB 35 lines
1#!/usr/bin/env bash 2set -euo pipefail 3 4ROOT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)" 5VIEWER_DIR="$ROOT_DIR/miniview" 6OPENVT_DIR="$ROOT_DIR/vendor/open-vt" 7GODOT_BIN="${GODOT_BIN:-/nix/store/q2apsqxsljrzy2xpq26z774r5c30lagr-godot-4.6.2-stable/bin/godot4}" 8 9export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}" 10export WAYLAND_DISPLAY="${WAYLAND_DISPLAY:-wayland-1}" 11 12if [ ! -S "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ]; then 13 echo "Wayland socket not found: $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" 14 exit 1 15fi 16 17mkdir -p "$VIEWER_DIR/addons" 18mkdir -p "$VIEWER_DIR/.godot" 19 20rm -rf "$VIEWER_DIR/addons/gd_cubism" 21cp -R "$OPENVT_DIR/thirdparty/gd_cubism/demo/addons/gd_cubism" "$VIEWER_DIR/addons/gd_cubism" 22 23mkdir -p "$VIEWER_DIR/addons/gd_cubism/bin/linux/x86_64" 24cp "$OPENVT_DIR/addons/gd_cubism/bin/linux/x86_64/libgd_cubism.linux.debug.x86_64.so" "$VIEWER_DIR/addons/gd_cubism/bin/linux/x86_64/" 25cp "$OPENVT_DIR/addons/gd_cubism/bin/linux/x86_64/libLive2DCubismCore.so" "$VIEWER_DIR/addons/gd_cubism/bin/linux/x86_64/" 26 27cat > "$VIEWER_DIR/.godot/extension_list.cfg" <<'EOF' 28res://addons/gd_cubism/gd_cubism.gdextension 29EOF 30 31mkdir -p "$VIEWER_DIR/addons/gd_cubism/example/res/live2d/Haru" 32rm -rf "$VIEWER_DIR/addons/gd_cubism/example/res/live2d/Haru" 33cp -R /home/nandi/.local/share/godot/app_userdata/open-vt/Live2DModels/Haru "$VIEWER_DIR/addons/gd_cubism/example/res/live2d/Haru" 34 35exec "$GODOT_BIN" --path "$VIEWER_DIR"