Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "1.0.19",
"main": "./dist-electron/main.js",
"scripts": {
"clean": "npx rimraf dist dist-electron",
"clean": "npx rimraf dist dist-electron node_modules",
"dev": "cross-env NODE_ENV=development npm run clean && concurrently \"tsc -w -p tsconfig.electron.json\" \"vite\" \"wait-on -t 30000 http://localhost:54321 && electron ./dist-electron/main.js\"",
"test": "echo \"No tests defined. Please contribute if you like\" && exit 0",
"lint": "npx eslint .",
"start": "cross-env NODE_ENV=development concurrently \"tsc -p tsconfig.electron.json\" \"vite\" \"wait-on -t 30000 http://localhost:54321 && electron ./dist-electron/main.js\"",
"build": "cross-env NODE_ENV=production npm run clean && vite build && tsc -p tsconfig.electron.json",
"build": "cross-env NODE_ENV=production npm run clean && npm install && vite build && tsc -p tsconfig.electron.json",
"run-prod": "cross-env NODE_ENV=production electron ./dist-electron/main.js",
"package": "npm run build && electron-builder build",
"package-mac": "npm run build && electron-builder build --mac",
Expand Down
6 changes: 5 additions & 1 deletion stealth-run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ mkdir "%APPDATA%\interview-coder-v1\extra_screenshots" 2>nul

echo === Step 2: Cleaning previous builds... ===
echo Removing old build files to ensure a fresh start...
rmdir /s /q dist dist-electron 2>nul
rmdir /s /q dist dist-electron node_modules 2>nul
del /q .env 2>nul

echo === Step 2.5: Installing fresh dependencies... ===
echo This ensures Electron is properly installed...
call npm install

echo === Step 3: Building application... ===
echo This may take a moment...
call npm run build
Expand Down
6 changes: 5 additions & 1 deletion stealth-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ mkdir -p ~/Library/Application\ Support/interview-coder-v1/extra_screenshots

echo "=== Step 2: Cleaning previous builds... ==="
echo "Removing old build files to ensure a fresh start..."
rm -rf dist dist-electron
rm -rf dist dist-electron node_modules
rm -f .env

echo "=== Step 2.5: Installing fresh dependencies... ==="
echo "This ensures Electron is properly installed..."
npm install

echo "=== Step 3: Building application... ==="
echo "This may take a moment..."
npm run build
Expand Down