chore: remove dist folder

This commit is contained in:
tux
2025-03-10 17:21:34 +05:30
parent efa816b4a8
commit 05c9e912c4
7 changed files with 49 additions and 1 deletions

1
.gitignore vendored
View File

@ -29,4 +29,3 @@ result
# web
node_modules
dist

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
internal/web/dist/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

17
internal/web/dist/index.html vendored Normal file
View File

@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>trok ~ Accessing your local service should be simple</title>
<script type="module" crossorigin src="/assets/index-5XdRZXKz.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-3ZG59SIU.css">
</head>
<body>
<div id="root"></div>
</body>
</html>

30
internal/web/dist/install.sh vendored Normal file
View File

@ -0,0 +1,30 @@
#!/bin/sh
# Copyright 2025 t@tux.rs. All rights reserved.
set -e
repo="tuxdotrs/trok"
release_url="https://api.github.com/repos/$repo/releases/latest"
if [ "$OS" = "Windows_NT" ]; then
echo "Error: this installer only works on linux & macOS." 1>&2
exit 1
else
case $(uname -sm) in
"Darwin x86_64") target="darwin-x86_64" ;;
"Darwin arm64") target="darwin-aarch64" ;;
"Linux x86_64") target="linux-x86_64" ;;
"Linux arm64"|"Linux aarch64") target="linux-aarch64" ;;
*) target="linux-x86_64" ;;
esac
fi
echo "Downloading $repo for $target"
release_target_url=$(
curl -s "$release_url" |
grep "browser_download_url" |
grep "$target" |
sed -re 's/.*: "([^"]+)".*/\1/' \
)
curl -sL "$release_target_url" | tar xz