Strip everything after a ? in the INSTALL_URL when computing the INSTALL_EXE to allow for URLs that include query-string parameters.
Move the parsing of INSTALL_URL in order to extract INSTALL_EXE into the install_app function - it isn't used anywhere else, and this allows the pre-install hook to change INSTALL_URL before it is parsed into INSTALL_EXE.
Just as a sanity check, do you foresee any backwards-compatible issues? I'll test these changes on my own snaps and, unless you see an issue, push it to the 1.0 branch.
?
in theINSTALL_URL
when computing theINSTALL_EXE
to allow for URLs that include query-string parameters.INSTALL_URL
in order to extractINSTALL_EXE
into theinstall_app
function - it isn't used anywhere else, and this allows the pre-install hook to changeINSTALL_URL
before it is parsed intoINSTALL_EXE
.