Can RiscPkg/Packman and is it ok to install two applications using a single Package?
Pages: 1 2
Paolo Fabio Zaino (28) 1882 posts |
@ Steve
Thanks, the more feedback I get the more I am prone to think I need to package both in the same package. |
Rick Murray (539) 13840 posts |
One might give it fancy titles, but isn’t this pretty much how it’s been for a long time?
Yes, which ideally means a file format identifier in order to understand how to interpret the data within.
Nothing new here…begin by applying the sensible default settings. Then overwrite with the user’s configuration. That which is not specifically defined gets the default. A little example of not being useful – the HCCS IDE mini podule for the A3000. It had a ROM onboard with IDEFS, and one could set up various options. One of these options was how long, at boot, to wait for the harddisc to respond. Now, the problem was that if the CMOS memory was cleared (or the hardware installed on a new machine), the default value would be zero. IDEFS would duly take that to mean “wait for 0 seconds” and would consequently fail to see the drive (it wasn’t fast, about 8 seconds to spin up and respond).
Of course. That, and plenty of sanity checking along the way. As you say, there’s a lot to “resilience”.
File type identifiers, and the ability to handle both types of file, would make this less of a problem. Obviously it’ll be incomplete, which is where you can warn the user upon loading the older file. As a rule, if the format of a file changes, my software is able to load old and new (even if it only writes the new format). There have been some changes along the way with Manga’s various files.
If they’re interdependent, then yes, it would make sense. |
Alan Buckley (167) 232 posts |
Paolo, I don’t look at this forum as much as I used to so I’ve only just seen your posting. To answer your questions (or I think what your questions were). A package can install to multiple directories and can have any combination of fixed and user settable install locations. There is a system of triggers that can be added to a package to run extra processing during the install, update or removal of a package. Config is a little awkward because PackMan will replace files on an upgrade, so if you have user editable files included in the config that’s not so good.
Let me know if I missed any points, you can always contact me via the email in the PackMan help and I try to respond to forum posts within a few days of seeing them. PackMan development is fairly slow, but if there is something useful that could be done to help support config/choices in a package I’m always glad to discuss ideas. (Most PackMan development has been driven by discussion with individual users or on forums). |
Paolo Fabio Zaino (28) 1882 posts |
@ Alan, That is EXACTLY what I was hoping to have! :))))))
This seems the option I am seeking for, basically use a script to CREATE (instead of copying) a configuration. But if it’s complicated I can add a piece of code (even a simply BBC BASIC that gets executed at both running the Setup Plugin or the App if the configuration file does not exists. This way I have only one place where I deal with the config file generation or migration in case of upgrades (better architecture and easier to maintain). Such program will obviously be installed via Packman as part of the App and so updated when an update is installed. I only want to have one place where I handle this and then have an easy way to trigger that creation and/or migration program easily. If I can do this in a RiscPkg it’s like a “set and forget”, in the App and configure set-up plugin it can be the same.
Thanks a lot for this, and thanks for the info, for a moment I thought Packman was only unzipping, but instead it’s truly a nice piece of software Alan! :) I may need some help experimenting with the “triggers” if that’s ok. |
Pages: 1 2