When you purchase a Business Plus (or a Personal Plus) license for a DlhSoft framework you will receive the source code of the library as a zip file. Extract it to a folder, and you’re free to modify it before using the output in your own project, it’s that easy.
But what if you’d ever want to update the source code to a newest version? (Such as for free during the first year since the purchase, or by purchasing a renewal license later.)
This simple strategy can help you; it uses git, but you can use other source code control tools as well (just adapt the commands appropriately):
- Commit the original DlhSoft source code into a private local repo on your side, initialized in the folder where you extracted the zip.
- Important: Do not expose the repo to any other third parties!
- Create and checkout a dev branch, customize the source code as needed, commit the changes, and reuse output in your own project(s).
- When you get an updated zip for the DlhSoft product source code, checkout the master branch and replace the files in there. Git should detect the changes and you can commit them as well (to record the differences) on the original branch.
- Merge master branch into dev (having the latter checked out again) to combine DlhSoft changes with your own and eventually be able to reuse the updated customized output in your project(s).
- Repeat steps 3-4 later if they would become applicable again.
[received initial source-code.zip] mkdir dlhsoft-source-code cd dlhsoft-source-code [extract source-code.zip] git init git add . git commit -m "v1" git branch dev git checkout dev [update source code files] git commit -m "Customizations" [build source code and reuse customized output]
[received updated-source-code.zip] git checkout master [extract updated-source-code.zip over local files] git add . git commit -m "v2" git checkout dev git merge master [build source code and reuse updated customized output]