JSOTO GAR
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
@echo off
|
||||
setlocal EnableExtensions
|
||||
REM ===========================================================================
|
||||
REM build_mbs.cmd - Baja lo ultimo de Git y compila el GAR del menu MBS
|
||||
REM
|
||||
REM >>> CORRER EN UNA PC CON GENERO STUDIO 6.00.03 (tiene gsmake) <<<
|
||||
REM
|
||||
REM Salida: <REPO>\PROYECTO\distbin\mbs.gar
|
||||
REM Luego ese .gar se lleva al server .251 y se corre deploy_mbs.cmd
|
||||
REM ===========================================================================
|
||||
|
||||
REM --- AJUSTA estas 2 rutas a tu PC ---
|
||||
set "REPO=C:\MBS"
|
||||
set "GSMAKE=C:\Program Files\FourJs\Genero Studio603\gst\bin\gsmake.exe"
|
||||
|
||||
REM --- (normalmente no cambian) ---
|
||||
set "PROJECT=%REPO%\PROYECTO\MBSerp_new3.4pw"
|
||||
set "GAROUT=%REPO%\PROYECTO\distbin\mbs.gar"
|
||||
|
||||
REM --- (OPCIONAL) copiar el GAR a un destino que vea el server .251 ---
|
||||
REM Ej: un share del server. Deja vacio para no copiar.
|
||||
set "DEST="
|
||||
REM set "DEST=\\192.168.40.251\deploy\mbs.gar"
|
||||
|
||||
if not exist "%GSMAKE%" (
|
||||
echo [ERROR] No existe gsmake en: "%GSMAKE%"
|
||||
echo Corrige la variable GSMAKE (ruta de tu Genero Studio).
|
||||
exit /b 1
|
||||
)
|
||||
if not exist "%PROJECT%" (
|
||||
echo [ERROR] No existe el proyecto: "%PROJECT%"
|
||||
echo Corrige REPO o el nombre del .4pw.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo --- 1) git pull ---
|
||||
pushd "%REPO%" || (echo [ERROR] No existe %REPO% & exit /b 1)
|
||||
git pull
|
||||
popd
|
||||
|
||||
echo(
|
||||
echo --- 2) Compilando GAR con gsmake ---
|
||||
"%GSMAKE%" "%PROJECT%"
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] gsmake fallo. Abre el proyecto en GST y revisa los errores de build.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
if not exist "%GAROUT%" (
|
||||
echo [ERROR] No se genero el GAR esperado: %GAROUT%
|
||||
echo Si gsmake no arma el paquete, construyelo desde GST:
|
||||
echo clic derecho en el paquete "mbs" -^> Build
|
||||
echo (tambien deja el .gar en PROYECTO\distbin\)
|
||||
exit /b 1
|
||||
)
|
||||
echo [OK] GAR generado: %GAROUT%
|
||||
|
||||
if defined DEST (
|
||||
echo --- 3) Copiando a %DEST% ---
|
||||
copy /Y "%GAROUT%" "%DEST%"
|
||||
if errorlevel 1 echo [AVISO] No se pudo copiar a %DEST% (revisa el share/permiso^).
|
||||
)
|
||||
|
||||
echo(
|
||||
echo LISTO.
|
||||
echo GAR: %GAROUT%
|
||||
echo Ahora en el server .251: deploy_mbs.cmd "ruta\mbs.gar"
|
||||
endlocal
|
||||
Reference in New Issue
Block a user