Update script

This commit is contained in:
halx99 2023-08-11 20:04:55 +08:00
parent a726bdd965
commit 3b7e08d89c
1 changed files with 2 additions and 2 deletions

View File

@ -84,12 +84,12 @@ function update_lib
download_and_expand "https://github.com/axmolengine/build1k/releases/download/$VER/$lib_name.zip" "./tmp/package_$VER/$lib_name.zip" "./tmp/package_$VER"
Remove-Item $prebuilt_dir -Recurse -Force
Copy-Item ./tmp/package_$VER/$lib_name/prebuilt $lib_dir/ -Container
Copy-Item ./tmp/package_$VER/$lib_name/prebuilt $lib_dir/ -Container -Recurse
if (Test-Path "./tmp/package_$VER/$lib_name/include" -PathType Container) {
echo "Update inc files for ${lib_dir}"
Remove-Item $inc_dir -Recurse -Force
Copy-Item ./tmp/package_$VER/$lib_name/include $lib_dir/ -Container
Copy-Item ./tmp/package_$VER/$lib_name/include $lib_dir/ -Container -Recurse
}
++$updateCount