You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run script (postinst) after installing my application.
I'm able to put the scripts in the resources folder of the installation directory, but after the complete installation, they are not executed.
When I create the installer through jpackage via terminal, the scripts are executed normally, however, when I create the installer through the compose plugin, they are not executed.
If you run the create_package.sh script inside the jpackage_manual folder, it will create the .deb installer, and when you run the installer, the postinst scripts will run normally.
Now, if you are going to create the installer from the ./gradlew package task, the installer will be generated, however, if it is executed, no script is executed.
I don't know if some configuration is missing, or the plugin is not executing the scripts.
Then, how to run the .deb package scripts via installer created by the plugin?
The text was updated successfully, but these errors were encountered:
Looking at the .deb files produced by the packageDeb task, one can see that the files from the source's resource/ directory land in /opt/briar-desktop/lib/app/resources/ inside the data.tar.xz archive. However, one can see that the default preinst and postinst scripts land in the control.tar.xz archive.
The respective code that handles this in Compose is this:
val appResourcesRootDir = app.nativeDistributions.appResourcesRootDir
if (appResourcesRootDir.isPresent) {
from(appResourcesRootDir.dir("common"))
from(appResourcesRootDir.dir(currentOS.id))
from(appResourcesRootDir.dir(currentTarget.id))
}
val destDir = project.layout.buildDirectory.dir("compose/tmp/${app.name}/resources")
into(destDir)
Until #1843 gets merged, we're using the following code at Briar Desktop to re-package the .deb files produced by Compose, in case anyone is interested:
I'm trying to run script (postinst) after installing my application.
I'm able to put the scripts in the resources folder of the installation directory, but after the complete installation, they are not executed.
Follow the script instructions from this link:
http://www.embeddedlinux.org.cn/OEManual/recipes_installation_scripts.html
When I create the installer through jpackage via terminal, the scripts are executed normally, however, when I create the installer through the compose plugin, they are not executed.
I created a repository to simulate this situation, follow the link:
https://github.com/rodrigoknob/test_compose
If you run the create_package.sh script inside the jpackage_manual folder, it will create the .deb installer, and when you run the installer, the postinst scripts will run normally.
Now, if you are going to create the installer from the ./gradlew package task, the installer will be generated, however, if it is executed, no script is executed.
I don't know if some configuration is missing, or the plugin is not executing the scripts.
Then, how to run the .deb package scripts via installer created by the plugin?
The text was updated successfully, but these errors were encountered: