Skip to content

Commit 47e7afb

Browse files
committed
Fix download_vcpkg_bin on windows
1 parent 7e19a55 commit 47e7afb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vcpkg.just

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ in_git_repo := path_exists(join(justfile_directory(), ".git"))
2727

2828
[windows]
2929
download_vcpkg_bin:
30+
- rm -r '{{join(justfile_directory(), "vcpkg")}}'
3031
mkdir '{{join(justfile_directory(), "vcpkg")}}'
32+
git clone https://github.com/microsoft/vcpkg.git '{{join(justfile_directory(), "vcpkg")}}'
3133
curl -L --fail --show-error '{{vcpkg_tool_url}}' -o '{{join(justfile_directory(), "vcpkg", "vcpkg.exe")}}'
3234

3335
[unix]
@@ -55,4 +57,4 @@ dist triplet=VCPKG_DEFAULT_TRIPLET git_hash=`git rev-parse HEAD`:
5557
cmd.exe /C '{{source_directory()}}/dist.bat' '{{justfile_directory()}}' '{{triplet}}' {{git_hash}}
5658

5759
[unix]
58-
dist triplet=VCPKG_DEFAULT_TRIPLET git_hash=`git rev-parse HEAD`: (build_dist triplet)
60+
dist triplet=VCPKG_DEFAULT_TRIPLET git_hash=`git rev-parse HEAD`: (build_dist triplet)

0 commit comments

Comments
 (0)