diff --git a/ventures/havre/tools/open.sh b/ventures/havre/tools/open.sh index 87036bb..2b4a3a7 100644 --- a/ventures/havre/tools/open.sh +++ b/ventures/havre/tools/open.sh @@ -7,6 +7,13 @@ OV_REF=d983874a79810edaffb85721911630af29d09d95 src=$(mktemp -d) git clone -q https://github.com/nikshepsvn/openvenice "$src" git -C "$src" checkout -q "$OV_REF" +# Phone fixes: a labeled "New chat" button, and no ⌘ shortcut hints below md width +f="$src/src/components/layout/sidebar.tsx" +perl -0pi -e 's/aria-label="New chat"\n(\s*)className="/aria-label="New chat"\n$1className="flex items-center gap-1.5 px-2.5 py-1.5 text-[13px] border border-white\/[0.12] /' "$f" +perl -0pi -e 's/(<\/svg>)(\n\s*<\/button>\n\s*<\/div>\n\s*\{conversations\.length > 5)/$1New chat<\/span>$2/' "$f" +perl -0pi -e 's/title="New chat \(⌘N\)"/title="New chat"/' "$f" +perl -0pi -e 's/
(\n\s*
)/
$1/' "$f" +grep -q "New chat" "$f" && grep -q "hidden md:block px-3 py-2.5" "$f" (cd "$src" && npm ci --silent --no-audit --no-fund >/dev/null && npx vite build --base=/open/ >/dev/null) rm -rf open cp -R "$src/dist" open @@ -32,7 +39,7 @@ sed -i.bak 's|||' open/ind grep -q havre-key.js open/index.html cat > open/LICENSE.txt <