Check for update before downloading. #383
Unanswered
GGHostDotGames
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using DD with PowerShell, and trying to figure out what would be the best way to check if there is an update available, and only if there is, then download the updated files. My thinking is that I would run DD once to check if there is an update, and then if there is, use an IF statement to run DD again to download the files.
For the first run of DD, would using -manifest-only be the correct way to do the update check? And if so, would my IF statement be based on something in the output like "Already have manifest 12345 for depot 678910" ?
So, in pseudocode:
dotnet DepotDownloader.dll -app 730 -depot 731 -manifest-only
IF output LIKE "Already have manifest"
THEN stop
ELSE dotnet DepotDownloader.dll -app 730 -depot 731
Is this correct, or is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions