cpierquet

script_texportable

Jan 5th, 2022 (edited)
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.23 KB | None | 0 0
  1. :: ------SCRIPT D'INSTALLATION AUTO (MINI) TEX PORTABLE --------
  2. :: v1.1     modifications mineures pour renommer les fichiers/dossiers avec *
  3. :: v1.0     version initiale
  4. :: -------------------------------------------------------------
  5.  
  6. @echo off
  7. :: on recupere la lettre du lecteur ;-)
  8. set id=%CD:~0,1%
  9.  
  10. :: on cree les repertoires si besoin
  11. mkdir logiciels
  12. mkdir tmp
  13.  
  14. :: les variables des fichiers
  15. set thonnyzip=https://texportable.cpierquet.fr/fichiers/LOGICIELS/MATHS/thonny-windows-portable.zip
  16. set texstudiozip=https://texportable.cpierquet.fr/fichiers/LOGICIELS/MATHS/texstudio-win-portable-qt5.zip
  17. set scriptauto=https://texportable.cpierquet.fr/fichiers/SCRIPTS/Config.Auto.Mini.bat
  18. set gnuplotzip=https://texportable.cpierquet.fr/fichiers/LOGICIELS/MATHS/gnuplot.tar.gz
  19. set inifilezip=https://texportable.cpierquet.fr/fichiers/LOGICIELS/SYSTEME/inifile.zip
  20. set miktexportable=https://texportable.cpierquet.fr/fichiers/LOGICIELS/MATHS/miktex-portable.exe
  21. set unzipexe=https://texportable.cpierquet.fr/fichiers/SCRIPTS/unzip.exe
  22. set sumatrazip=https://texportable.cpierquet.fr/fichiers/LOGICIELS/OUTILS/SumatraPDF.zip
  23.  
  24. :: on dl les zip/tar
  25. curl -o %id%:\tmp\unzip.exe %unzipexe%
  26. curl -o %id%:\tmp\thonny.zip %thonnyzip%
  27. curl -o %id%:\tmp\texstudio.zip %texstudiozip%
  28. curl -o %id%:\tmp\gnuplot.tar.gz %gnuplotzip%
  29. curl -o %id%:\tmp\inifile.zip %inifilezip%
  30. curl -o %id%:\tmp\sumatra.zip %sumatrazip%
  31. curl -o %id%:\Config.Auto.Mini.bat %scriptauto%
  32.  
  33. :: on extrait les archives et on renomme
  34. %id%:\tmp\unzip.exe -o -q %id%:\tmp\thonny.zip -d %id%:\logiciels\thonny
  35. %id%:\tmp\unzip.exe -o -q %id%:\tmp\texstudio.zip -d %id%:\logiciels\texstudio
  36. %id%:\tmp\unzip.exe -o -q %id%:\tmp\sumatra.zip -d %id%:\logiciels\texstudio
  37. tar -zxf %id%:\tmp\gnuplot.tar.gz -C %id%:\logiciels
  38. %id%:\tmp\unzip.exe -o -q %id%:\tmp\inifile.zip -d %id%:\logiciels
  39. move %id%:\logiciels\gnuplot* %id%:\logiciels\gnuplot
  40. ren %id%:\logiciels\texstudio\SumatraPDF*.exe sumatra.exe
  41.  
  42. :: on passe a miktex
  43. curl -o %id%:\tmp\miktex-portable.exe %miktexportable%
  44. %id%:\tmp\miktex-portable.exe
  45.  
  46. pause
  47.  
  48. :: on lance texstudio une 1ere fois pour les fichiers de config
  49. %id%:\logiciels\texstudio\texstudio.exe
  50.  
  51. pause
  52.  
  53. :: on lance la config.auto
  54. %id%:\Config.Auto.Mini.bat
Add Comment
Please, Sign In to add comment