1
0
mirror of https://github.com/bitwarden/browser synced 2025-01-27 11:39:42 +01:00

27 lines
630 B
Batchfile
Raw Normal View History

2018-03-28 15:31:53 -04:00
@echo off
cd %~dp0
SETLOCAL
2018-03-28 15:36:17 -04:00
2018-03-28 15:31:53 -04:00
SET DIST_DIR=%APPVEYOR_BUILD_FOLDER%\dist\
SET DIST_SRC_DIR=%DIST_DIR%Source\
SET REPO_URL=https://github.com/%APPVEYOR_REPO_NAME%.git
2018-03-28 15:53:01 -04:00
:: Do normal build
2018-03-28 15:57:44 -04:00
ECHO
ECHO ## Build dist
ECHO
2018-03-28 15:53:01 -04:00
CALL npm run dist
:: Build sources for reviewers
2018-03-28 15:57:44 -04:00
ECHO
ECHO ## Build sources
ECHO
2018-03-28 15:53:01 -04:00
CALL git clone --branch=%APPVEYOR_REPO_BRANCH% %REPO_URL% %DIST_SRC_DIR%
2018-03-28 15:31:53 -04:00
cd %DIST_SRC_DIR%
2018-03-28 15:53:01 -04:00
CALL git checkout %APPVEYOR_REPO_COMMIT%
CALL git submodule update --init --recursive
2018-03-28 15:31:53 -04:00
cd %DIST_DIR%
DEL /S/Q "%DIST_SRC_DIR%.git\objects\pack\*"
2018-03-28 16:12:57 -04:00
CALL 7z a browser-source-%APPVEYOR_BUILD_NUMBER%.zip "%DIST_SRC_DIR%\*"
2018-03-28 15:31:53 -04:00
cd %APPVEYOR_BUILD_FOLDER%