-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be able to use the "customize" and "require-scripts" options #3
Comments
I see that
EDIT:
|
I just discovered a new attribute that is not related to the options above but could be useful in some cases. |
I could not relate these change requests to a meaningful use case. What exactly are you trying to achieve? For instance:
Ability to run pre- and post-install scripts seems to be the only clear request. As for the other ideas, I would suggest to clarify the use cases, and do some testing to confirm the options work as intended. |
As a total macOS noobs that could have not be relevant.
|
I was hoping use pre-install script to set the Java heap memory size depending on the user's computer total RAM available. EDIT: For being able to use the computer RAM size to determine the Java heap memory size to be set at install time. |
Do you think that my macOS goals are possible? |
For services, you should take a look at launchd. Once you create a job definition that works for you, configure the installer to copy it to the appropriate location. I will implement support for pre- and post-install scripts (though, as for Java, it has good memory defaults nowadays). As for the |
Thank you very much for your help and advice 👍
Yes, but du to our memory issue flawed by design and huge database to be handled (until 50 000 media by some users)and images or thumbnails, artwork to be displayed, for now we need to use this ugly trick before a huge refactoring that mean most all the code done since the beginning years ago by the original developpers so it will take time and skill... I only read extended attributes users quarantine issue reports related to DMG, perhaps Safari did changed one extended attribute value while downloading the package?, so i just naively wanted try to avoid future similar issue. |
As a side note, i should have said that i will also use this script ability to move our configurations files to the macOS user's default local folder |
Just wondering - why not just installing the configuration files to the appropriate location? |
Because i didn't found a way to do that on macOS. |
Do defining |
@Sami32 I tried to tell you before that you can place anywhere in the filesystem simply by placing them in the correct path in the PKG. |
One other use case will be to detect the Java version installed, because Java 9 and above removed some classes that make some applications relying on LookAndFeel, for example, to fail. |
Do this plugin have a mean to offer a customized menu to offer complememt applications download or ask the users if they want do a clean install or choose the memory heap size? |
This plugin is for building of certain kind of macOS packages in a cross-platform way. It can't control the installation experience, it can only enable features supported by the packages. |
Oh i see. Thank you for having taked the time to answer me 👍 |
No problem. Sorry for being slow. As for Java, I would definitely recommend to embed it; it is even required to do so for App Store apps. Support for pre- and post-install scripts should be finished within 2-4 weeks, but as for heap size adjustments I would consider implementing this logic in your application, as the amount of available memory as well as the requirements probably may change after the application is installed. |
No problem, i'm not faster ;) You are correct that it is not a perfect solution but it should do the trick for most users using it in daemon mode until that issue get natively properly fixed. I saw that some NS function seem to be able to handle heap memory so i will also look into that possibility. |
After consideration i will adopt your suggestion and remove the JVM memory settings and leave it handle it automatically. It shouldn't be worse anyway ;) While testing the daemon that i've created, i tried to remember an option that i've found some weeks ago to change the default agreement window after the License but i cannot remember well and find it again. I remember having discovered that somewhere into your code and that made the license agreement confirmation done on the same page down instead of a separate window after. |
I just share my discovery about a media server called Serviio is using install Scripts in its macOS build: I hope that it is not for win only 4 MB that he have archived its package into an tar.gz... |
Can we create user and group without the installer scripts? |
Any way to use these options?
pkg/pkg-core/src/main/java/com/github/gino0631/pkg/ProductBuilder.java
Line 223 in e35bf63
https://github.com/gino0631/pkg/blob/616d9ae68a1df5193e362d7ac15002ab6c752465/pkg-core/src/main/java/com/github/gino0631/pkg/jaxb/distribution/Options.java
Maybe something like that:
or
The text was updated successfully, but these errors were encountered: