HomeGenie Forum

General Category => General Discussion => Topic started by: Spico on August 15, 2016, 11:27:11 PM

Title: Losing changes on rebuild
Post by: Spico on August 15, 2016, 11:27:11 PM
I want to improve the widgets for KNX but on each rebuild I lose the changes i have implemented.

how can I preserv my changes.

Title: Re: Losing changes on rebuild
Post by: bkenobi on August 16, 2016, 05:15:23 PM
Are you referring to changes you have made to the source, compiled, and overwritten stock files with?  If so, you would either need to compile your own version each release or keep a backup of the files you customized to copy in after each update.  If the changes you make are ones that would be suitable for all users, you could also consider forking the main code and submitting it for incorporation into the main branch.
Title: Re: Losing changes on rebuild
Post by: Spico on August 18, 2016, 07:40:40 PM
I have submitted some code already, but each time i rebuild the solution, it resets the complete environment.
how can i avoid losing the changes i have made here. for example the adresses of som KNX nodes like a lamp.
as also the parameters i need to configure to find the eibd server and so on, also the installed packages i need to work with like KNX
Title: Re: Losing changes on rebuild
Post by: bkenobi on August 20, 2016, 06:55:37 AM
If you modify a builtin app (e.g. smart lights) and then update HG, the module will be overwritten. I'd recommend creating a new instance and modifying that so updates won't overwrite it.
Title: Re: Losing changes on rebuild
Post by: Spico on October 16, 2016, 11:52:00 AM
What exactly do you mean by instance?

a new module?
Title: Re: Losing changes on rebuild
Post by: bkenobi on October 17, 2016, 05:58:35 PM
It must have a different program ID.  If you export the built-in app and then import it, you will have a second copy/instance of the same app but the new one will have a different program ID.  So, when you update HG next time the new instance won't be affected by the update.  If you want to tweak the code, you need to make the change to that new version.
Title: Re: Losing changes on rebuild
Post by: rainsee on November 25, 2016, 08:20:45 AM
I'd recommend creating a new instance and modifying that so updates won't overwrite it.