From be3827be4e55dd8b76abfed76e8fb7eadb2f4914 Mon Sep 17 00:00:00 2001 From: Aydin <108932477+Aydinhamedi@users.noreply.github.com> Date: Thu, 14 Mar 2024 20:42:35 +0330 Subject: [PATCH] new file: Interface/GUI/Data/Gen_lib.cmd --- Interface/GUI/Data/Gen_lib.cmd | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Interface/GUI/Data/Gen_lib.cmd diff --git a/Interface/GUI/Data/Gen_lib.cmd b/Interface/GUI/Data/Gen_lib.cmd new file mode 100644 index 0000000..90971ef --- /dev/null +++ b/Interface/GUI/Data/Gen_lib.cmd @@ -0,0 +1,11 @@ +@echo off +echo (Batch script) Generating requirements.txt... +del requirements.txt >nul 2>&1 +echo Y | pigar -l ERROR generate >nul 2>&1 + +rem Use PowerShell to remove the first line of requirements.txt and save to a temporary file +powershell -Command "Get-Content requirements.txt | Select-Object -Skip 2 | Set-Content requirements_temp.txt" + +rem Replace the original file with the modified temporary file +move /Y requirements_temp.txt requirements.txt >nul +echo (Batch script) Done Generating requirements.txt. \ No newline at end of file