This commit is contained in:
Raven Scott
2026-02-21 01:23:04 -05:00
parent 791d22944a
commit a12368d57c
10 changed files with 118 additions and 34 deletions
-2
View File
@@ -4,8 +4,6 @@ $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$RepoRoot = (Resolve-Path (Join-Path $ScriptDir "..")).Path
$ExtDir = (Resolve-Path (Join-Path $RepoRoot "extension")).Path
if (-not (Test-Path (Join-Path $ExtDir "manifest.json"))) { Write-Error "extension/manifest.json not found."; exit 1 }
Write-Host "Generating extension ID..."
node (Join-Path $ScriptDir "generate-extension-id.js")
Set-Clipboard -Value $ExtDir
$p = "${env:ProgramFiles}\Google\Chrome\Application\chrome.exe","${env:ProgramFiles(x86)}\Google\Chrome\Application\chrome.exe","${env:LocalAppData}\Google\Chrome\Application\chrome.exe" | Where-Object { Test-Path $_ } | Select-Object -First 1
if ($p) { Start-Process $p -ArgumentList "chrome://extensions" }
-3
View File
@@ -6,9 +6,6 @@ REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
EXT_DIR="$REPO_ROOT/extension"
[[ ! -f "$EXT_DIR/manifest.json" ]] && echo "Error: extension/manifest.json not found." && exit 1
echo "Generating extension ID..."
node "$SCRIPT_DIR/generate-extension-id.js"
command -v pbcopy >/dev/null 2>&1 && echo "$EXT_DIR" | pbcopy
command -v xclip >/dev/null 2>&1 && echo -n "$EXT_DIR" | xclip -selection clipboard 2>/dev/null || true
command -v xsel >/dev/null 2>&1 && echo -n "$EXT_DIR" | xsel --clipboard 2>/dev/null || true
-3
View File
@@ -5,9 +5,6 @@ $RepoRoot = (Resolve-Path (Join-Path $ScriptDir "..")).Path
$HostDir = Join-Path $RepoRoot "native-host"
Set-Location $HostDir
Write-Host "Generating extension ID..."
node (Join-Path $ScriptDir "generate-extension-id.js")
Write-Host "Installing native-host dependencies..."
if (-not (Test-Path (Join-Path $HostDir "node_modules"))) {
npm install --no-fund --no-audit 2>$null
-3
View File
@@ -6,9 +6,6 @@ REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
HOST_DIR="$REPO_ROOT/native-host"
cd "$HOST_DIR"
echo "Generating extension ID..."
node "$SCRIPT_DIR/generate-extension-id.js"
echo "Installing native-host dependencies..."
if [[ ! -d "$HOST_DIR/node_modules" ]]; then
npm install --no-fund --no-audit 2>/dev/null || npm install
-5
View File
@@ -13,11 +13,6 @@ if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
exit 1
}
# Generate unique extension ID (so each copy of the template gets its own ID)
Write-Host ""
Write-Host "0. Generating extension ID..."
node (Join-Path $ScriptDir "generate-extension-id.js")
# Ensure bare is available
if (-not (Get-Command bare -ErrorAction SilentlyContinue)) {
Write-Host "Installing Bare runtime (required for native host)..."
-5
View File
@@ -15,11 +15,6 @@ if ! command -v node >/dev/null 2>&1; then
exit 1
fi
# Generate unique extension ID (so each copy of the template gets its own ID)
echo ""
echo "0. Generating extension ID..."
node "$SCRIPT_DIR/generate-extension-id.js"
# Ensure bare is available (required for native host)
if ! command -v bare >/dev/null 2>&1; then
echo "Installing Bare runtime (required for native host)..."