GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TokenViewer/run.sh at main · webkong/TokenViewer

Expand file tree

/

run.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
37 lines (32 loc) · 1.44 KB
/

run.sh

Copy path

File metadata and controls

executable file
·
37 lines (32 loc) · 1.44 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -e
ROOT="$(cd "$(dirname "$0")" && pwd)"
export PATH="$HOME/.cargo/bin:/opt/homebrew/opt/rustup/bin:$PATH"
if [ -n "${TOKENVIEWER_TOOLCHAIN_BIN:-}" ]; then export PATH="$TOKENVIEWER_TOOLCHAIN_BIN:$PATH"; fi
LIB="$ROOT/core/target/aarch64-apple-darwin/release/libtokenviewer_core.a"
NEWEST_SRC=$(find "$ROOT/core/src" -name "*.rs" -newer "$LIB" 2>/dev/null | head -1)
if [ -z "$NEWEST_SRC" ] && [ -f "$LIB" ]; then
echo "⏭ Rust unchanged, skipping"
else
echo "▶ Building Rust core..."
cd "$ROOT/core"
cargo build --release --target aarch64-apple-darwin
fi
echo "▶ Building Swift app..."
cd "$ROOT/macos"
BUILD_LOG=$(xcodebuild -scheme TokenViewer -configuration Release -derivedDataPath "$ROOT/DerivedData" build 2>&1)
echo "$BUILD_LOG" | grep -E "(BUILD|error:)" | head -5
echo "$BUILD_LOG" | grep -q "BUILD SUCCEEDED" || { echo "❌ Build failed"; exit 1; }
echo "▶ Launching..."
pkill -f "TokenViewer.app" 2>/dev/null || true; sleep 0.5
APP=$(find "$ROOT/DerivedData/Build/Products/Release" -name "TokenViewer.app" -maxdepth 1 2>/dev/null | head -1)
if [ -z "$APP" ]; then echo "❌ App not found"; exit 1; fi
echo " $APP"
APP_BIN="$APP/Contents/MacOS/TokenViewer"
if [ ! -x "$APP_BIN" ]; then echo "❌ App binary not found"; exit 1; fi
if [[ "$*" == *"--skip-sync"* ]]; then
TV_SKIP_SYNC=1 TV_OPEN_MAIN_WINDOW=1 "$APP_BIN" >/dev/null 2>&1 &
else
TV_OPEN_MAIN_WINDOW=1 "$APP_BIN" >/dev/null 2>&1 &
fi
echo "✅ Done"
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.