Since Bowlets are made with HTML, CSS, and JavaScript, and the APIs exposed by Papilio are made to be compatible with Bowtie’s APIs, converting existing Bowlets to Papilio-powered Cydgets should be fairly simple. Here a few simple steps to follow.
Make sure to check Get Info and make sure that it definitely ends with ".cydget" and not ".cydget.bowTie", as that won’t work.
If your Cydget's folder is SomeBowlet.cydget, then the title of the page should be "SomeBowlet". The title is used by Papilio do directly access your Info.plist.
Note that I assume your Bowlet's HTML file will be called index.html, but it could be called anything else. In that case, make sure to substitute index.html for whatever your file is called for the rest of the guide.
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <script type="text/javascript" src="papilio.compiled.js"></script>
It must be the last element in the onload attribute, because if your onload contains an init function, Papilio may run before your variables are properly initialized, and therefore not work.
<body onload="refreshCycle();">
Or in the case where your code has an init function or other code in there:
<body onload="init(); refreshCycle();">
<key>Plugin</key> <string>WebCycriptLockScreen</string> <key>Configuration</key> <dict> <key>Homepage</key> <string>file:///System/Library/LockCydgets/SomeBowlet.cydget/index.html</string> <key>CycriptURLs</key> <string>^file:///System/Library/LockCydgets/SomeBowlet\.cydget/index\.html$</string> <key>Scrollable</key> <string>NO</string> </dict>
Please note that you must not remove anything from the Bowlet's existing Info.plist; Papilio gets certain information, such as artwork size from the plist.
Also make sure to substitute every occurence of SomeBowlet with the name of your Bowlet; the same one that you set as the title tag earlier.
After following this process, you should have a Cydget that fully replicates your Bowlet's functionality. That said, it won't be perfect straight away.
Please don't redistribute ported Bowlets without the original author's consent.