forked from sakura-editor/sakura
-
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.
Merge pull request sakura-editor#114 from m-tmatma/feature/zip-artifacts
appveyor の成果物の zip 圧縮する
- Loading branch information
Showing
2 changed files
with
27 additions
and
3 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
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,24 @@ | ||
set platform=%1 | ||
set configuration=%2 | ||
set WORKDIR=sakura-%platform%-%configuration% | ||
set OUTFILE=sakura-%platform%-%configuration%.zip | ||
|
||
@rem cleanup for local testing | ||
if exist "%OUTFILE%" ( | ||
del %OUTFILE% | ||
) | ||
if exist "%WORKDIR%" ( | ||
rmdir /s /q %WORKDIR% | ||
) | ||
|
||
mkdir %WORKDIR% | ||
copy %platform%\%configuration%\*.exe %WORKDIR%\ | ||
copy %platform%\%configuration%\*.dll %WORKDIR%\ | ||
copy %platform%\%configuration%\*.pdb %WORKDIR%\ | ||
|
||
7z a %OUTFILE% -r %WORKDIR% | ||
7z l %OUTFILE% | ||
|
||
if exist %WORKDIR% ( | ||
rmdir /s /q %WORKDIR% | ||
) |