twn wiki on windows

This commit is contained in:
veclavtalica 2025-02-17 10:01:48 +03:00
parent 9beef7686e
commit 1cd4bfa638

View File

@ -41,7 +41,11 @@ case "$1" in
api-gen ) "$toolpath"/gen_api_header.sh
;;
wiki ) xdg-open "file://$TWNROOT/docs/wiki/index.html"
wiki ) if [ "$OS" = "Windows_NT" ]; then
explorer "file://""$(cygpath -w "$(command realpath $TWNROOT/docs/wiki/index.html)")"
else
xdg-open "file://$TWNROOT/docs/wiki/index.html"
fi
;;
* ) echo "Unknown command."