-
-
Notifications
You must be signed in to change notification settings - Fork 52
Generating versionInfoURL
SimplePatchTool fetches an xml file called VersionInfo.info from the server of your choice while checking for updates or applying patches. This file holds all the necessary info to apply a patch.
-
But how does SimplePatchTool know where to fetch the VersionInfo.info from? Because you provide its url to SimplePatchTool during the integration phase (
versionInfoURL
parameter), prior to creating any patches. -
Then how can you know the download url of a file that doesn't yet exist? Easy! You simply upload a dummy VersionInfo.info to where you'd like to host the real one at and then fetch this dummy file's download url. Afterwards, when you create a new patch, you can simply replace/update the contents of this dummy VersionInfo.info with the real one.
Hosting VersionInfo on Google Drive™
- create an empty text file called VersionInfo.info on your computer
- upload the file to your Drive
- right click the uploaded file and select "Get shareable link". Use the provided URL as versionInfoURL
Hosting VersionInfo on Dropbox™
- create a dummy text file called VersionInfo.info on your computer
- upload the file to your Dropbox, then select the file and click Share
- click the Create a link button and copy the share link
- replace the
?dl=0
part at the end of the share link with?dl=1
- use the updated share link (with
?dl=1
) as versionInfoURL
Hosting VersionInfo on a custom server
- create an empty text file called VersionInfo.info on your computer
- upload the file to the server and make it public
- use the download link of the file as versionInfoURL