Q: How do I know what files changed in the last update?
Q: How do I create a "patch only" version?
To see what has changed between 2 versions of OpenCart (or any system), you can simply compare the 2 versions in one of many free merge tools. You can even get export the changed files for your own "patch" version.
- Download and install the free "WinMerge" diff program (Windows Only).
- Download the zip file of the latest version of OpenCart.
- Download the zip file of the version of OpenCart that you currently are using.
Extract your current version of the opencart zip to a folder called c:\current
Extract the latest version of the opencart zip to a folder called c:\latest
There should be an "upload" folder at c:\current\upload
There should be an "upload" folder at c:\latest\upload
There may be other files (readme.txt, etc) but we don't care about these for now.
4. Perform the "Diff":
- In Windows XP, Click the "Start" button and choose "Run".
- In Windows Vista/7, just use the search field at the bottom.
Type this and hit enter:
Be sure current is first and latest is second
Code: Select all
winmerge /r "c:\current" "c:\latest"
It should open WinMerge and start comparing the 2 folders recursively.
When it has finished diffing the files, you should see a list of files like this: In the menu bar choose "View" and set the checkmarks to match this example: Now you should see exactly what is "changed" or "new" on the right side (latest)
6. Export the changes:
For my example, I've diff'd v1.5.2 with v184.108.40.206
There were "43" files changed and I want to get a package of only these files.
On the WinMerge window, hit "Ctrl+A" to select all files.
With all files selected, right click anywhere on the list (be sure not to de-select any files)
and choose "Copy->Right to..." Create a new folder called "c:\changes-only" and you should get a confirmation like: Hit OK
7. Verify Output:
Go to c:\changes-only folder and look in the "upload" folder. You should have a smaller subset of folders and files consisting ONLY of what has changed or is newer since the current version.
8. IMPORTANT INSTALL CHECK!
If the file "upload\install\opencart.sql" exists in the changes-only then there are likely database changes.
Since the install folder won't likely already exist on your site, you will need to grab the "full" install folder from the c:\latest folder and paste that directly into the c:\changes-only\upload folder
This will add all the other necessary files needed for upgrade. If the upgrade.sql file doesn't already exist in the c:\changes-only folder then there are no db upgrades and you can skip this step.
Now simply upload the folders from the changes-only folder following this video tutorial:
If there were upgrade.sql changes (From step 8 above) then be sure to follow the upgrade.txt procedures after uploading the new files.