Update scripts for new thirdparty convention

This commit is contained in:
2025-04-14 14:56:21 -04:00
parent 77f1466ae3
commit eaae5f32ca
3 changed files with 4 additions and 1 deletions

View File

@@ -44,7 +44,6 @@ $path_sokol_tools = join-path $path_thirdparty 'sokol-tools'
$sokol_build_clibs_command = join-path $path_scripts 'build_sokol_library.ps1' $sokol_build_clibs_command = join-path $path_scripts 'build_sokol_library.ps1'
# clone-gitrepo $path_freetype $url_freetype
clone-gitrepo $path_sokol_tools $url_sokol_tools clone-gitrepo $path_sokol_tools $url_sokol_tools
Update-GitRepo -path $path_sokol -url $url_sokol -build_command $sokol_build_clibs_command Update-GitRepo -path $path_sokol -url $url_sokol -build_command $sokol_build_clibs_command

View File

@@ -66,6 +66,10 @@ function Update-GitRepo
return return
} }
if ( -not(test-path -Path (join-path $path '.git'))) {
return # Assume the user doesn't want to use git grab packages automatically.
}
git -C $path fetch git -C $path fetch
$latest_commit_hash = git -C $path rev-parse '@{u}' $latest_commit_hash = git -C $path rev-parse '@{u}'
$last_built_hash = if (Test-Path $last_built_commit) { Get-Content $last_built_commit } else { "" } $last_built_hash = if (Test-Path $last_built_commit) { Get-Content $last_built_commit } else { "" }

Binary file not shown.