repo url variable
This commit is contained in:
parent
5b83a0ea0a
commit
b7b43406e8
|
@ -1,8 +1,9 @@
|
||||||
$distDir = $env:APPVEYOR_BUILD_FOLDER + "\dist\"
|
$distDir = $env:APPVEYOR_BUILD_FOLDER + "\dist\"
|
||||||
$distSrcDir = $distDir + "Source\"
|
$distSrcDir = $distDir + "Source\"
|
||||||
git clone https://github.com/ + $env:APPVEYOR_REPO_NAME + ".git" $distSrcDir
|
$repoUrl = "https://github.com/" + $env:APPVEYOR_REPO_NAME + ".git"
|
||||||
|
git clone -q --branch=master $repoUrl $distSrcDir
|
||||||
cd $distSrcDir
|
cd $distSrcDir
|
||||||
git checkout $env:APPVEYOR_REPO_COMMIT
|
git checkout -qf $env:APPVEYOR_REPO_COMMIT
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd $distSrcDir
|
cd $distSrcDir
|
||||||
7z a browser-source-$env:APPVEYOR_BUILD_NUMBER.zip $distSrcDir
|
7z a browser-source-$env:APPVEYOR_BUILD_NUMBER.zip $distSrcDir
|
||||||
|
|
Loading…
Reference in New Issue