plen-ControlServer
plen-ControlServer copied to clipboard
auto update func
close #10
I think this fix only work on the OS X or Linux environment.
More better way to update itself is the process shown as below coding with Python functions: https://mo.kerosoft.com/095
What do you think?
Certainly shell scrypts are not suitable for cross platform. We should use python standard library like os.path.
I'll fix it as soon as possible.
I checked on OSX by pretending version. But I failed to run, because latest version application for OSX was broken. If possible, someone try on Windows please.
Sorry for delay in this reply.
I have thought PID delegation needs to finish updating itself, because HTTP server instances should not have same IP address each other. For instance: https://mo.kerosoft.com/095
I think that this app startup two process (and not parent-child). So, http server should startup as a child process to kill http server process.
HTTP server application(Main.app) is wrapped by applescript(Controlserver.app). And compiled applescript can't receive argument other program. So, PID doesn't reach newer version app. I think that this app abolish applescript and make it Python(Main.app) only.