Post Install Script
If you want to make some actions, like installation or copy files after the package is installed already, you can add a post-install-script.
To include a post-install-script add into your package folder a directory named /boot.
Switch into this folder and create a new text file using the right-mouse context menu.
Write your bash script into the text file.
Call the post-install-script in the .PackageInfo file:
You can use all licenses that exist in the system. To see which licenses you can use, look under /boot/system/data/licenses.
If the license you are looking for is not available you can simply add it to your hpkg. To do this, add the corresponding directories to your hpkg folder and place the corresponding license in the form of a text file.
|Of course, this can also be a self-created license.|
Create link to Application menu
In many hpkg files I see again and again that there is no link in the application menu.
How should I create a link if the program is not installed? Now one could come up with the idea to copy the program into the installation folder and creating the link to the Application menu. Since this area of the system is read-only, this is not possible.
The developers have therefore adapted the ln command and thus allowed to set the link without the output file is at its correct positon.
|ln -rs /boot/system/apps/program-folder/program-name /path/to/program-file/in/your/hpkg-folder|
Then create the path /data/deskbar/menu/Applications into your HPKG folder and place here the link.
Made available by BeSly, the Haiku knowledge base.