Mise en place d'une sauvegarde versionnée
This commit is contained in:
9
Scripts/Installer_OBCD.bat
Normal file
9
Scripts/Installer_OBCD.bat
Normal file
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
echo ===============================
|
||||
echo Installation MySQL ODBC 9.3.0
|
||||
echo ===============================
|
||||
echo Installation des composants requis...
|
||||
start /wait vc_redist.x64.exe /quiet /norestart
|
||||
start /wait mysql-connector-odbc-9.2.0-winx64.msi /quiet
|
||||
echo Installation terminée.
|
||||
pause
|
||||
27
Scripts/Installer_Prod.bat
Normal file
27
Scripts/Installer_Prod.bat
Normal file
@@ -0,0 +1,27 @@
|
||||
@echo off
|
||||
title Installation de la version stable de Ratio
|
||||
echo.
|
||||
echo ==========================================
|
||||
echo INSTALLATION DE RATIO - VERSION STABLE
|
||||
echo ==========================================
|
||||
echo.
|
||||
|
||||
REM Chemin de destination
|
||||
set DEST="C:\Program Files\Ratio"
|
||||
|
||||
REM Créer le dossier si nécessaire
|
||||
if not exist %DEST% (
|
||||
mkdir %DEST%
|
||||
)
|
||||
|
||||
REM Copier le fichier Excel
|
||||
copy "Ratio_prod.xlsm" %DEST%\Ratio.xlsm /Y
|
||||
|
||||
REM Protéger le fichier en lecture seule
|
||||
attrib +R %DEST%\Ratio.xlsm
|
||||
|
||||
echo.
|
||||
echo ✔️ Le fichier Ratio_prod a été installé avec succès !
|
||||
echo Emplacement : %DEST%\Ratio.xlsm
|
||||
echo.
|
||||
pause
|
||||
BIN
Scripts/VC_redist.x64.exe
Normal file
BIN
Scripts/VC_redist.x64.exe
Normal file
Binary file not shown.
18
Scripts/maj_prod_ratio.bat
Normal file
18
Scripts/maj_prod_ratio.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
REM === Script de mise à jour de la version PROD depuis le fichier DEV ===
|
||||
REM Date : 2025_05_17
|
||||
|
||||
set "DEV=C:\Users\miche\PycharmProjects\Ratio & Inventaires\Excel\dev\Ratio_dev.xlsm"
|
||||
set "PROD_DIR=C:\Users\miche\PycharmProjects\Ratio & Inventaires\Excel\prod"
|
||||
set "PROD_FILE=%PROD_DIR%\Ratio_prod.xlsm"
|
||||
set "ARCHIVE_FILE=%PROD_DIR%\Ratio_prod_v2025_05_17.xlsm"
|
||||
|
||||
echo Sauvegarde de la version actuelle de PROD...
|
||||
copy /Y "%PROD_FILE%" "%ARCHIVE_FILE%"
|
||||
|
||||
echo Copie de la nouvelle version DEV vers PROD...
|
||||
copy /Y "%DEV%" "%PROD_FILE%"
|
||||
|
||||
echo.
|
||||
echo Mise à jour terminée. Fichier archivé : %ARCHIVE_FILE%
|
||||
pause
|
||||
BIN
Scripts/mysql-connector-odbc-9.3.0-winx64.msi
Normal file
BIN
Scripts/mysql-connector-odbc-9.3.0-winx64.msi
Normal file
Binary file not shown.
3
Scripts/restaurer.sh
Normal file
3
Scripts/restaurer.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
cp Excel/prod/ratio_prod.xlsm Excel/dev/ratio_dev.xlsm
|
||||
echo "✔️ Version stable restaurée dans dev."
|
||||
Reference in New Issue
Block a user