[Gambas-user] Pre-/Post-install scripts
T Lee Davidson
t.lee.davidson at gmail.com
Tue Jan 10 21:01:09 CET 2023
On 1/6/23 09:09, Benoit Minisini wrote:
> Le 06/01/2023 à 14:24, T Lee Davidson a écrit :
>> (Side note: I think it would be quite useful to have pre- and post- install shell script options for packaging.)
> This must be done for Rpm, Deb, ArchLinux and Slackware packages then. Is it possible? Any volunteer?
There seems to be no exact common denominator between those four systems in regards to pre-/post-install commands/scripts.
It appears that ArchLinux supports only post-install commands which the rest also do. However, RPMs support only commands
contained in "scriptlets" which are multi-line strings embedded in the SPEC file, while the others support inclusion of actual
shell script files.
So, providing for post-install commands is possible. But, the Make Installation Package Wizard would have to either:
1) accept the commands as text (for RPMs) and then prepend the shebang line (#!/usr/bin/sh) to create a real script file (for
the others), or
2) accept the commands as an additional file (identified as a post-install script) and then, for RPMs, strip the shebang line if
It's probably no matter either way at the moment, as I do not have the time to tackle it. I just wanted to report back in case
anyone else has interest and time.
More information about the User