Skip to content

Commit

Permalink
new file: Interface/GUI/Data/Gen_lib.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Aydinhamedi committed Mar 14, 2024
1 parent a368124 commit be3827b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Interface/GUI/Data/Gen_lib.cmd
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit be3827b

Please sign in to comment.