Skip to content

Commit

Permalink
modified for this module
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayalix committed May 21, 2023
1 parent 4694238 commit 4fe156d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@echo off
setlocal

@REM Read the version details from the module.prop file
for /f "tokens=2 delims=<> " %%a in ('find "version=Version" ^< "module.prop" ') do set version=%%a

echo ^>^> Creating zip file

if exist "C:\Program Files\7-Zip\7z.exe" (
"C:\Program Files\7-Zip\7z.exe" a -tzip "Systemless-Hosts v%version%.zip" * -x!build.bat -x!README.md
) else if exist "C:\Program Files (x86)\7-Zip\7z.exe" (
"C:\Tools\7z.exe" a -tzip "Systemlless-Hosts v%version%.zip" * -x!build.bat -x!README.md
) else (
echo ERROR^: 7zip executable not found! Please install it from https://www.7-zip.org/download.html
exit /b 1
)

echo.
echo ^>^> Done! You can find the module zip file in the current directory - '%CD%\Systemless-Hosts v%version%.zip'

0 comments on commit 4fe156d

Please sign in to comment.