Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
Open
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
37 changes: 37 additions & 0 deletions cursor-reset-full-config-mac-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
# Ensure the script is running in the correct directory (where package.json is located)
echo "Running in directory: $(pwd)"

# Install dependencies
echo "Installing dependencies..."
npm install

# Check if the dist folder exists and contains the required files
if [[ -f "dist/cursor-reset-linux" && -f "dist/cursor-reset-macos" && -f "dist/cursor-reset-win.exe" ]]; then
echo "Required files found in the dist folder."
else
echo "Required files not found. Building the project..."
npm run build:all
fi

# Ask the user to choose which file to run based on their operating system
echo "Please select your operating system:"
echo "1. Linux"
echo "2. macOS"
echo "3. Windows"
read -p "Enter the number corresponding to your OS: " choice

# Run the appropriate file based on the user's choice
if [[ "$choice" == "1" ]]; then
echo "Running cursor-reset-linux..."
./dist/cursor-reset-linux
elif [[ "$choice" == "2" ]]; then
echo "Running cursor-reset-macos..."
./dist/cursor-reset-macos
elif [[ "$choice" == "3" ]]; then
echo "Running cursor-reset-win.exe..."
echo "This script is running on Linux/macOS. Windows executables cannot be run here."
else
echo "Invalid choice. Exiting..."
exit 1
fi
43 changes: 43 additions & 0 deletions cursor-reset-full-config-win.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@echo on
REM Ensure the script is running in the correct directory (where package.json is located)
echo Running in directory: %cd%

REM Install dependencies
echo Installing dependencies...
npm install

REM Check if the dist folder exists and contains the required files
if exist "dist\cursor-reset-linux" if exist "dist\cursor-reset-macos" if exist "dist\cursor-reset-win.exe" (
echo Required files found in the dist folder.
) else (
echo Required files not found. Building the project...
cd ..
npm run build:all
cd "cursor-reset"
)

REM Ask the user to choose which file to run based on their operating system
echo Please select your operating system:
echo 1. Linux
echo 2. macOS
echo 3. Windows
set /p choice="Enter the number corresponding to your OS: "

REM Run the appropriate file based on the user's choice
if "%choice%"=="1" (
echo Running cursor-reset-linux...
dist\cursor-reset-linux
) else if "%choice%"=="2" (
echo Running cursor-reset-macos...
dist\cursor-reset-macos
) else if "%choice%"=="3" (
echo Running cursor-reset-win.exe...
dist\cursor-reset-win.exe
) else (
echo Invalid choice. Exiting...
pause
exit /b
)

REM Optional: Keep the window open after the command runs
pause