mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
The setup package script works again.
This commit is contained in:
parent
7e7d3ed988
commit
7a984b4988
1 changed files with 4 additions and 19 deletions
|
@ -5,26 +5,11 @@ setlocal EnableDelayedExpansion
|
|||
set "ZU-app=batch\utilities\7za.exe"
|
||||
set "title=coco-dev-win-setup"
|
||||
|
||||
call:parse_file_new "batch\config\config" cnfg n
|
||||
set "sf=%cnfg[1]%"
|
||||
cd batch\\scripts\\
|
||||
call get_config version
|
||||
cd ..\\..\\
|
||||
|
||||
%ZU-app% a "%title%-%sf%.zip" .\batch\*
|
||||
|
||||
|
||||
:: ================= FUNCTIONS =========================
|
||||
|
||||
:parse_file
|
||||
set "file=%~1"
|
||||
for /F "usebackq delims=" %%a in ("%file%") do (
|
||||
set /A %~3+=1
|
||||
call set %~2[%%%~3%%]=%%a
|
||||
)
|
||||
goto:eof
|
||||
|
||||
:parse_file_new
|
||||
set /A %~3=0
|
||||
call:parse_file %~1 %~2 %~3
|
||||
goto:eof
|
||||
%ZU-app% a "%title%-%version%.zip" .\batch\*
|
||||
|
||||
:: =================== EOF =============================
|
||||
|
||||
|
|
Loading…
Reference in a new issue