Preparing yab apps for distribution. - Printable Version +- yab | yet another Basic for HAIKU (https://yab.orgfree.com/forum) +-- Forum: General discussion (https://yab.orgfree.com/forum/forumdisplay.php?fid=8) +--- Forum: yab stuff (https://yab.orgfree.com/forum/forumdisplay.php?fid=10) +--- Thread: Preparing yab apps for distribution. (/showthread.php?tid=9) |
Preparing yab apps for distribution. - bbjimmy - 07-02-2015 When packaging a yab-app for distribution it is best to give your app its own app Application Signature. From the IDE, replace application/x-vnd.yab-app with application/x-vnd.uourappname when using the Buildfactory. From the command-line., use: Code: BuildFactory.yab outputfile inputfile application/x-vnd.uourappname This will allow your app to not be hidden in the Deskbar application listing by another yab-app. Make an RDEF file for your app. This is a plane text file that defines resources for an application. In this case, we want to add an icon and application version information as shown in the FileType tracker add-on applet. An example rdef file: Code: resource vector_icon { The vector icon info is generated by Icon-O-Matic when an icon is exported as "HVIF RDef" Replace "resource(<your resource id here>) #'VICN' array" with "resource vector_icon" The resource app_signature should match your "application/x-vnd.uourappname" resource app_version is the version number information. resource app_flags is the launch flag, Single launch, Multiple launch, etc. Use the RdefApply yab script included in the /boot/home/yab_work/BuildFactory directory. Usage: Code: RdefApply <RdefFilename> <yourappbinary> RE: Preparing yab apps for distribution. - clasqm - 07-03-2015 Seems complicated. How is this different from right-clicking on the binary, opening it in FileType, and filling in all the details there? RE: Preparing yab apps for distribution. - bbjimmy - 07-03-2015 (07-03-2015, 05:14 AM)clasqm Wrote: Seems complicated. How is this different from right-clicking on the binary, opening it in FileType, and filling in all the details there? There is not much if you are packaging your ap in an .hpkg file. However if this is done, it doesn't matter if the file is unzipped or copied to a filesystem that doesn't support attributes, the attributes, version launch flag and icon, are resources of the binary and applied to it by the os when the file is launched. RE: Preparing yab apps for distribution. - lelldorin - 07-13-2015 (07-03-2015, 08:52 AM)bbjimmy Wrote:(07-03-2015, 05:14 AM)clasqm Wrote: Seems complicated. How is this different from right-clicking on the binary, opening it in FileType, and filling in all the details there? Why this option is not a part of the Build Process of the yabIDE? RE: Preparing yab apps for distribution. - lelldorin - 08-17-2015 Will be fine to see this tutorial in the besly knowledge base too. Can i add it? RE: Preparing yab apps for distribution. - bbjimmy - 08-17-2015 (08-17-2015, 02:06 AM)lelldorin Wrote: Will be fine to see this tutorial in the besly knowledge base too. Can i add it? I see no reason not to. It is more of a heads-up than a tutorial though. |