Commit 3400731e authored by abmyii's avatar abmyii
Browse files

Dynamically generate vncserver.sh with ARCH_TRIPLET substituted in at build

parent 8ffb5afa
Pipeline #233045639 passed with stage
in 2 minutes and 54 seconds
......@@ -4,3 +4,13 @@ set -Eeou pipefail
cd "${ROOT}"
make -j$(( ( $(getconf _NPROCESSORS_ONLN) + 1) / 2 ))
cat << EOF >> vncserver.sh
#!/bin/sh
SCRIPTPATH="\$(dirname \$(realpath -s \$0))"
export LD_LIBRARY_PATH="\$SCRIPTPATH/lib/${ARCH_TRIPLET}/"
\$SCRIPTPATH/mirvncserver -m /run/mir_socket "\$@"
EOF
chmod +x vncserver.sh
#!/bin/sh
SCRIPTPATH="$(dirname $(realpath -s $0))"
export LD_LIBRARY_PATH="$SCRIPTPATH/lib/*/"
$SCRIPTPATH/mirvncserver -m /run/mir_socket "$@"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment