mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
add build, dev and install scripts for windows, mac and linux
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Function to check if a program exists
|
||||
CALL :check_program_existence npm HAS_NPM
|
||||
CALL :check_program_existence pnpm HAS_PNPM
|
||||
|
||||
:: Checking and installing Node.js and npm if not present
|
||||
IF "%HAS_NPM%"=="false" (
|
||||
ECHO npm is not detected. Please install Node.js from https://nodejs.org/ and rerun this script.
|
||||
EXIT /B 1
|
||||
)
|
||||
|
||||
:: Checking and installing pnpm if not present
|
||||
IF "%HAS_PNPM%"=="false" (
|
||||
ECHO pnpm is not detected. Installing pnpm...
|
||||
npm install -g pnpm
|
||||
)
|
||||
|
||||
:: Installing dependencies using pnpm
|
||||
pnpm install
|
||||
CD interface
|
||||
pnpm install
|
||||
CD ..
|
||||
|
||||
ECHO Success! All dependencies installed.
|
||||
GOTO :EOF
|
||||
|
||||
:: Function to check if a program exists
|
||||
:check_program_existence
|
||||
SET "program=%~1"
|
||||
FOR /F "tokens=*" %%i IN ('where %program% 2^>NUL') DO (SET "%~2=true" & GOTO :EOF)
|
||||
SET "%~2=false"
|
||||
GOTO :EOF
|
||||
Reference in New Issue
Block a user