RAZ app
This commit is contained in:
BIN
Excel/backup/Ratio_Cuisine_Vers4.2.37.xlsm
Normal file
BIN
Excel/backup/Ratio_Cuisine_Vers4.2.37.xlsm
Normal file
Binary file not shown.
BIN
Excel/backup/Ratio_Restauration_Vers2.1.16.xlsm
Normal file
BIN
Excel/backup/Ratio_Restauration_Vers2.1.16.xlsm
Normal file
Binary file not shown.
BIN
Excel/backup/Ratio_Restauration_Vers2.1.17.xlsm
Normal file
BIN
Excel/backup/Ratio_Restauration_Vers2.1.17.xlsm
Normal file
Binary file not shown.
BIN
Excel/backup/Ratio_Restauration_Vers2.1.18.xlsm
Normal file
BIN
Excel/backup/Ratio_Restauration_Vers2.1.18.xlsm
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +0,0 @@
|
|||||||
5.0.3
|
|
||||||
2026-01-21
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
4.2.37
|
4.2.38
|
||||||
2026-01-30
|
2026-01-30
|
||||||
|
|||||||
Binary file not shown.
@@ -1,2 +1,2 @@
|
|||||||
2.1.16
|
2.1.19
|
||||||
2026-01-23
|
2026-01-30
|
||||||
|
|||||||
@@ -1,69 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal ENABLEDELAYEDEXPANSION
|
|
||||||
|
|
||||||
REM --- Se place dans le dossier du .bat ---
|
|
||||||
cd /d "%~dp0"
|
|
||||||
|
|
||||||
REM Chemin du fichier de version pour la CUISINE
|
|
||||||
set "VERSION_FILE=..\Excel\prod\Ratio_Cuisine_Old_VERSION.txt"
|
|
||||||
|
|
||||||
REM On lit l'ANCIENNE version avant de la mettre à jour (pour nommer la sauvegarde)
|
|
||||||
set "OLD_VERSION="
|
|
||||||
if exist "%VERSION_FILE%" (
|
|
||||||
set /p OLD_VERSION=<"%VERSION_FILE%"
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Mise à jour de version...
|
|
||||||
python "maj_version.py" "%VERSION_FILE%"
|
|
||||||
if errorlevel 1 (
|
|
||||||
echo ERREUR lors de la mise à jour de version.
|
|
||||||
pause
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
REM === 2) CHEMINS DES FICHIERS EXCEL ===
|
|
||||||
set SRC=..\Excel\dev\Ratio_Cuisine_Old_dev.xlsm
|
|
||||||
set DST_DIR=..\Excel\prod
|
|
||||||
|
|
||||||
REM Dossier commun de sauvegardes (Cuisine + Restauration)
|
|
||||||
set BACKUP_DIR=..\Excel\backup
|
|
||||||
|
|
||||||
REM Vérifications
|
|
||||||
if not exist "%SRC%" (
|
|
||||||
echo ERREUR : fichier source introuvable :
|
|
||||||
echo %SRC%
|
|
||||||
pause
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
if not exist "%DST_DIR%" (
|
|
||||||
echo ERREUR : dossier de destination introuvable :
|
|
||||||
echo %DST_DIR%
|
|
||||||
pause
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
REM Création auto du dossier de sauvegarde s'il n'existe pas
|
|
||||||
if not exist "%BACKUP_DIR%" (
|
|
||||||
mkdir "%BACKUP_DIR%"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM === 3) NOM DU FICHIER DE SAUVEGARDE AVEC ANCIENNE VERSION ===
|
|
||||||
if "%OLD_VERSION%"=="" (
|
|
||||||
REM Sécurité : si on n'a pas réussi à lire la version, on met un nom générique
|
|
||||||
set "BACKUP=%BACKUP_DIR%\Ratio_Cuisine_Old_sansVersion.xlsm"
|
|
||||||
) else (
|
|
||||||
set "BACKUP=%BACKUP_DIR%\Ratio_Cuisine_Old_Vers%OLD_VERSION%.xlsm"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM === 4) COPIE VERS PROD ===
|
|
||||||
echo Copie vers la version de production...
|
|
||||||
copy /Y "%SRC%" "%DST_DIR%\Ratio_Cuisine_Old.xlsm"
|
|
||||||
|
|
||||||
REM === 5) SAUVEGARDE ===
|
|
||||||
echo Création de la sauvegarde datée...
|
|
||||||
copy /Y "%SRC%" "%BACKUP%"
|
|
||||||
|
|
||||||
echo Terminé.
|
|
||||||
exit /b 0
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user