nim_websitecreator
nim_websitecreator copied to clipboard
Improve stability of plugin enabling/disabling
CC @juancarlospaco, what do you think?
Our recompile function is sometimes unstable. Suggestion:
- Activate recompile from the browser UI
-
NimWC launcher
stopsnimwc_main
subrunner -
NimWC launcher
movesnimwc_main
to a backup location -
NimWC launcher
runsstartupCheck()
, which will recompilenimwc_main
- If recompiling fails,
NimWC launcher
will move the backup ofnimwc_main
back and report the output of the compiling error
Using the method above, we will keep the recompling out of the subrunner, and NimWC launcher
will be in control.