Hallucinate everything
This commit is contained in:
30
deploy.sh
30
deploy.sh
@@ -5,9 +5,9 @@ set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Build a fresh wheel and install it as a uv tool to avoid stale caches
|
||||
uv tool uninstall susser >/dev/null 2>&1 || true
|
||||
uv tool uninstall grader >/dev/null 2>&1 || true
|
||||
uv build --wheel --out-dir dist
|
||||
WHEEL=$(ls -1 dist/susser-*.whl | tail -n 1)
|
||||
WHEEL=$(ls -1 dist/grader-*.whl | tail -n 1)
|
||||
uv tool install "$WHEEL"
|
||||
|
||||
# Resolve uv tool install location (Linux/macOS and Windows Git Bash)
|
||||
@@ -21,21 +21,21 @@ if [ -n "${APPDATA:-}" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.local/share/uv/tools/susser/bin" ]; then
|
||||
SRC="$HOME/.local/share/uv/tools/susser/bin"
|
||||
elif [ -n "$APPDATA_U" ] && [ -d "$APPDATA_U/uv/tools/susser/Scripts" ]; then
|
||||
SRC="$APPDATA_U/uv/tools/susser/Scripts"
|
||||
elif [ -d "$HOME/AppData/Roaming/uv/tools/susser/Scripts" ]; then
|
||||
SRC="$HOME/AppData/Roaming/uv/tools/susser/Scripts"
|
||||
if [ -d "$HOME/.local/share/uv/tools/grader/bin" ]; then
|
||||
SRC="$HOME/.local/share/uv/tools/grader/bin"
|
||||
elif [ -n "$APPDATA_U" ] && [ -d "$APPDATA_U/uv/tools/grader/Scripts" ]; then
|
||||
SRC="$APPDATA_U/uv/tools/grader/Scripts"
|
||||
elif [ -d "$HOME/AppData/Roaming/uv/tools/grader/Scripts" ]; then
|
||||
SRC="$HOME/AppData/Roaming/uv/tools/grader/Scripts"
|
||||
fi
|
||||
|
||||
mkdir -p "$HOME/.local/bin"
|
||||
if [ -n "$SRC" ]; then
|
||||
if [ -f "$SRC/imview.exe" ]; then
|
||||
cp -f "$SRC/imview.exe" "$HOME/.local/bin/imview.exe"
|
||||
elif [ -f "$SRC/imview" ]; then
|
||||
cp -f "$SRC/imview" "$HOME/.local/bin/imview"
|
||||
chmod +x "$HOME/.local/bin/imview"
|
||||
if [ -f "$SRC/grader.exe" ]; then
|
||||
cp -f "$SRC/grader.exe" "$HOME/.local/bin/grader.exe"
|
||||
elif [ -f "$SRC/grader" ]; then
|
||||
cp -f "$SRC/grader" "$HOME/.local/bin/grader"
|
||||
chmod +x "$HOME/.local/bin/grader"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -46,6 +46,6 @@ esac
|
||||
|
||||
# Refresh shell command cache and print resolution
|
||||
hash -r || true
|
||||
which imview || true
|
||||
which grader || true
|
||||
|
||||
echo "imview installed to $HOME/.local/bin"
|
||||
echo "grader installed to $HOME/.local/bin"
|
Reference in New Issue
Block a user