This commit is contained in:
Kyle Spearrin 2018-03-28 15:53:01 -04:00
parent 8ac1c03033
commit 3acaa6e87a
1 changed files with 10 additions and 5 deletions

View File

@ -6,11 +6,16 @@ SET DIST_DIR=%APPVEYOR_BUILD_FOLDER%\dist\
SET DIST_SRC_DIR=%DIST_DIR%Source\ SET DIST_SRC_DIR=%DIST_DIR%Source\
SET REPO_URL=https://github.com/%APPVEYOR_REPO_NAME%.git SET REPO_URL=https://github.com/%APPVEYOR_REPO_NAME%.git
call npm run dist :: Do normal build
call git clone %REPO_URL% %DIST_SRC_DIR% ECHO "Build dist"
CALL npm run dist
:: Build sources for reviewers
ECHO "Build sources"
CALL git clone --branch=%APPVEYOR_REPO_BRANCH% %REPO_URL% %DIST_SRC_DIR%
cd %DIST_SRC_DIR% cd %DIST_SRC_DIR%
call git checkout %APPVEYOR_REPO_COMMIT% CALL git checkout %APPVEYOR_REPO_COMMIT%
call git submodule update --init --recursive CALL git submodule update --init --recursive
cd %DIST_DIR% cd %DIST_DIR%
call 7z a browser-source-%APPVEYOR_BUILD_NUMBER%.zip %DIST_SRC_DIR%\* CALL 7z a browser-source-%APPVEYOR_BUILD_NUMBER%.zip %DIST_SRC_DIR%\*
cd %APPVEYOR_BUILD_FOLDER% cd %APPVEYOR_BUILD_FOLDER%