1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-06 12:16:10 +02:00
bitwarden-browser/ci-build.cmd

17 lines
439 B
Batchfile
Raw Normal View History

2018-03-28 21:31:53 +02:00
@echo off
cd %~dp0
SETLOCAL
2018-03-28 21:36:17 +02:00
2018-03-28 21:31:53 +02: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 21:43:43 +02:00
call npm run dist
2018-03-28 21:31:53 +02:00
call git clone %REPO_URL% %DIST_SRC_DIR%
cd %DIST_SRC_DIR%
call git checkout %APPVEYOR_REPO_COMMIT%
call git submodule update --init --recursive
cd %DIST_DIR%
2018-03-28 21:42:32 +02:00
call 7z a browser-source-%APPVEYOR_BUILD_NUMBER%.zip %DIST_SRC_DIR%\*
2018-03-28 21:31:53 +02:00
cd %APPVEYOR_BUILD_FOLDER%