forked from akshayalix/systemless-hosts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4694238
commit 4fe156d
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |