-
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
Showing
1 changed file
with
46 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,46 @@ | ||
@echo off | ||
SET SEVENZIP= | ||
|
||
where 7z > nul 2>&1 | ||
if not errorlevel 1 ( | ||
set SEVENZIP=7z | ||
goto pack | ||
) | ||
|
||
where 7za > nul 2>&1 | ||
if not errorlevel 1 ( | ||
set SEVENZIP=7za | ||
goto pack | ||
) | ||
|
||
if exist "c:\Program Files (x86)\7-Zip\7z.exe" ( | ||
SET "SEVENZIP=c:\Program Files (x86)\7-Zip\7z.exe" | ||
goto pack | ||
) | ||
|
||
if exist "c:\Program Files (x86)\7-Zip\7za.exe" ( | ||
SET "SEVENZIP=c:\Program Files (x86)\7-Zip\7za.exe" | ||
goto pack | ||
) | ||
|
||
if exist "c:\Program Files\7-Zip\7z.exe" ( | ||
SET "SEVENZIP=c:\Program Files\7-Zip\7z.exe" | ||
goto pack | ||
) | ||
|
||
if exist "c:\Program Files\7-Zip\7za.exe" ( | ||
SET "SEVENZIP=c:\Program Files\7-Zip\7za.exe" | ||
goto pack | ||
) | ||
|
||
if NOT DEFINED SEVENZIP ( | ||
echo 7zip not found | ||
exit /b 1 | ||
) | ||
|
||
:pack | ||
if exist Kill.keypirinha-package ( | ||
del Kill.keypirinha-package | ||
) | ||
echo Using "%SEVENZIP%" to pack | ||
"%SEVENZIP%" a -mx9 -tzip Kill.keypirinha-package -x!%~nx0 -xr!.git * |