Made install_vcpkg_dendencies.bat work from any working directory

pushd %~dp0 will push the directory that contains the file as the working directory and we also pop it at the end to be a good citizen and restore the previous working directory
This commit is contained in:
Simon van Bernem 2022-03-07 18:44:51 +01:00
parent 843713a96e
commit 8c155f8adc

View File

@ -1,5 +1,7 @@
@echo off
pushd %~dp0
REM get vcpkg distribution
if not exist vcpkg git clone https://github.com/Microsoft/vcpkg.git
@ -8,3 +10,5 @@ if not exist vcpkg\vcpkg.exe call vcpkg\bootstrap-vcpkg.bat -disableMetrics
REM install required packages
vcpkg\vcpkg.exe install --triplet x64-windows-static freetype glfw3 capstone[arm,arm64,x86]
popd