<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to createplugin</title><link>https://sourceforge.net/p/unetbootin/wiki/createplugin/</link><description>Recent changes to createplugin</description><atom:link href="https://sourceforge.net/p/unetbootin/wiki/createplugin/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 24 Jun 2014 15:13:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/unetbootin/wiki/createplugin/feed" rel="self" type="application/rss+xml"/><item><title>createplugin modified by &lt;REDACTED&gt;</title><link>https://sourceforge.net/p/unetbootin/wiki/createplugin/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="building-a-unetbootin-plugin"&gt;Building a UNetbootin Plugin&lt;/h1&gt;
&lt;h2 id="what-a-plugin-does"&gt;What a plugin does&lt;/h2&gt;
&lt;p&gt;A UNetbootin plugin will provide custom branding for your distribution's installer, and will allow you to specify the distributions and versions to be displayed under the distribution selection box. It is a simpler process compared to &lt;a class="" href="/p/unetbootin/wiki/buildcustomversion/"&gt;Building a Custom UNetbootin Version&lt;/a&gt; as you will NOT have to compile your own version of UNetbootin. Also note that using the &lt;a class="" href="/p/unetbootin/wiki/commands/"&gt;command-line interface&lt;/a&gt; via a script in a (7-zip) self-extractor is another alternative (see &lt;a class="" href="../commands#BundlingtogetherascriptadiskimageandUNetbootinintoasingleexecutable"&gt;Bundling together a script, a disk image, and UNetbootin into a single executable&lt;/a&gt;). &lt;/p&gt;
&lt;h3 id="abilities"&gt;Abilities&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Can specify up to 9 custom distributions &lt;/li&gt;
&lt;li&gt;Can specify up to 36 versions per distribution &lt;/li&gt;
&lt;li&gt;Can add a diskimage (.iso or floppy/HDD .img) download location for each distribution &lt;/li&gt;
&lt;li&gt;Can add an HTML description for each distribution. &lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="limitations"&gt;Limitations&lt;/h3&gt;
&lt;p&gt;If you absolutely must have one of the following features, you will have to &lt;a class="" href="/p/unetbootin/wiki/buildcustomversion/"&gt;Build a Custom UNetbootin Version&lt;/a&gt; instead. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A plugin cannot load a distribution that the default UNetbootin version can't load via the "Diskimage" option. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you need one of the following features, you can accomplish it either via the procedure described on &lt;a class="" href="../commands#BundlingtogetherascriptadiskimageandUNetbootinintoasingleexecutable"&gt;Bundling together a script, a disk image, and UNetbootin into a single executable&lt;/a&gt; or by &lt;a class="" href="/p/unetbootin/wiki/buildcustomversion/"&gt;Building a Custom UNetbootin Version&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A plugin cannot embed external resources (images, disk images, etc) &lt;/li&gt;
&lt;li&gt;A plugin cannot load custom kernel and initrd files. &lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="example"&gt;Example&lt;/h2&gt;
&lt;p&gt;This example shows a customized version of UNetbootin for K/X/Ubuntu, with custom descriptions and download locations for each. Other examples can be obtained from the &lt;a class="" href="/p/unetbootin/wiki/listcustomversion/"&gt;List of Custom UNetbootin Versions and Plugins&lt;/a&gt; page. For usage instructions, see &lt;a class="" href="/p/unetbootin/wiki/useplugin/"&gt;Using a UNetbootin Plugin&lt;/a&gt;. &lt;/p&gt;
&lt;h3 id="screenshot"&gt;Screenshot&lt;/h3&gt;
&lt;p&gt;&lt;img alt="Imported from wikispaces" src="/raw-attachment/wiki/MiscWikiFiles/unetbootin-custom.png" /&gt;&lt;/p&gt;
&lt;h3 id="download"&gt;Download&lt;/h3&gt;
&lt;p&gt;Plugin: &lt;a class="" href="http://unetbootin.wiki.sourceforge.net/space/showimage/unetbootin_ubuntu_en.qm"&gt;unetbootin_ubuntu_en.qm&lt;/a&gt; &lt;br /&gt;
Standalone Executable: &lt;a class="" href="http://downloads.sourceforge.net/unetbootin/unetbootin-ubuntu-customsfx-windows-248.exe"&gt;unetbootin-ubuntu-customsfx-windows-248.exe&lt;/a&gt; &lt;br /&gt;
Source: &lt;a class="" href="http://unetbootin.wiki.sourceforge.net/space/showimage/unetbootin_ubuntu_en.ts"&gt;unetbootin_ubuntu_en.ts&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="creating-a-plugin"&gt;Creating a Plugin&lt;/h2&gt;
&lt;h2&gt;&lt;/h2&gt;
&lt;h3 id="prerequisites"&gt;Prerequisites&lt;/h3&gt;
&lt;p&gt;Before you will begin, you will need to download and install the open-source version of &lt;a class="" href="http://trolltech.com/products/qt" rel="nofollow"&gt;Qt&lt;/a&gt;. Windows users can download the "Qt Open Source Edition for C++ Developers - Desktop " from the &lt;a class="" href="http://trolltech.com/downloads/opensource" rel="nofollow"&gt;Qt Downloads Page&lt;/a&gt;, while Linux users can install the &lt;em&gt;qt4-dev-tools&lt;/em&gt; package or their distribution's equivalent. &lt;/p&gt;
&lt;p&gt;Now, download the &lt;a class="" href="http://unetbootin.wiki.sourceforge.net/space/showimage/unetbootin_ubuntu_en.ts"&gt;example source file&lt;/a&gt; and open it in Qt Linguist. You should now see something like this: &lt;/p&gt;
&lt;p&gt;&lt;img alt="Imported from wikispaces" src="/raw-attachment/wiki/MiscWikiFiles/qt-linguist-small.png" /&gt;&lt;/p&gt;
&lt;p&gt;The field on the left describes the purpose of the option, while the field on the right is where you can input the options for your customized version and click the green checkbox or press &lt;em&gt;Ctrl-Enter&lt;/em&gt; to confirm your changes. &lt;/p&gt;
&lt;h3 id="description-of-options"&gt;Description of Options&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Key:&lt;/strong&gt;&lt;/em&gt; &lt;br /&gt;
&lt;strong&gt;N&lt;/strong&gt; signifies distribution number, in the order in which they are displayed (1-9) &lt;br /&gt;
&lt;strong&gt;M&lt;/strong&gt; signifies version number for a particular distribution, in the order in which they are displayed (1-9) &lt;br /&gt;
&lt;strong&gt;]|[&lt;/strong&gt; separates multiple example entries &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Field&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;Description&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;Example&lt;/em&gt;&lt;/strong&gt;'s&lt;strong&gt;&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;iscustomver-no &lt;br /&gt;
Should always be set to "iscustomver-yes" &lt;br /&gt;
iscustomver-yes &lt;/p&gt;
&lt;p&gt;Custom UNetbootin Build &lt;br /&gt;
Name you want displayed for your rebranded UNetbootin version. &lt;br /&gt;
Ubuntu LiveUSB Creator &lt;/p&gt;
&lt;p&gt;amd64 &lt;br /&gt;
Name that corresponds to your distribution's codename for 64-bit processors on download pages. &lt;br /&gt;
amd64 ]|[ x86_64 &lt;/p&gt;
&lt;p&gt;i386 &lt;br /&gt;
Name that correspondes to your distribution's codename for 32-bit processors on download pages. &lt;br /&gt;
i386 ]|[ x86 &lt;/p&gt;
&lt;p&gt;Distro Name &lt;em&gt;N&lt;strong&gt; &lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
Name of the N&lt;strong&gt;-th distribution (1=first, 2=second, etc) you want displayed (The entry corresponding to "Distro Name 1" is shown by default, if you want the others to be hidden then make the second field for those you won't use empty) &lt;/strong&gt;&lt;br /&gt;
Ubuntu ]|&lt;span&gt;[ Kubuntu ]&lt;/span&gt;|[ "" (&amp;lt;-- this is an empty entry, meaning this distro won't be shown) &lt;/p&gt;
&lt;p&gt;&amp;lt;b&amp;gt;Homepage:&amp;lt;/b&amp;gt; &amp;lt;a href="&lt;a class="" href="http://www.distro'''N'''site.org" rel="nofollow"&gt;http://www.distroNsite.org&lt;/a&gt;"&amp;gt;&lt;a class="" href="http://www.distro'''N'''site.org%3C/a%3E%3Cbr/%3E%3Cb%3EDescription:%3C/b" rel="nofollow"&gt;http://www.distroNsite.org&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;Description:&amp;lt;/b&lt;/a&gt;&amp;gt; This distro N&lt;strong&gt; is unique and great in these ways.&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;Install Notes:&amp;lt;/b&amp;gt; You will have to do this to install this distribution &lt;/strong&gt;N&lt;strong&gt;. &lt;/strong&gt;&lt;br /&gt;
HTML description and instructions for the N&lt;strong&gt;-th distribution to show when it is selected. &lt;/strong&gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Homepage:&amp;lt;/b&amp;gt; &amp;lt;a href="&lt;a href="http://www.ubuntu.com/" rel="nofollow"&gt;http://www.ubuntu.com/&lt;/a&gt;"&amp;gt;&lt;a class="" href="http://www.ubuntu.com%3c/a%3E%3Cbr/%3E%3Cb%3EDescription:%3C/b" rel="nofollow"&gt;http://www.ubuntu.com&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;Description:&amp;lt;/b&lt;/a&gt;&amp;gt; Ubuntu is a user-friendly Debian-based distribution. It is currently the most popular Linux desktop distribution.&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt;Install Notes:&amp;lt;/b&amp;gt; This version allows for booting in Live mode, from which the installer can optionally be launched. &lt;/p&gt;
&lt;p&gt;default-distroN&lt;strong&gt;version-1.0 &lt;/strong&gt;&lt;br /&gt;
Default version of the N&lt;strong&gt;-th distribution. If it is a 64-bit version, add _x64 to the end of the name. If distribution number &lt;/strong&gt;N&lt;strong&gt; is enabled (Distro Name &lt;/strong&gt;N&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;* isn't empty), this must NOT be empty, though it can be left empty if the corresponding distribution &lt;/strong&gt;N&lt;strong&gt; is disabled (Distro Name &lt;/strong&gt;N&lt;strong&gt;* is empty). &lt;/strong&gt;&lt;br /&gt;
8.04.1 ]|&lt;span&gt;[ 8.04.1_x64 ]&lt;/span&gt;|[ "" (&amp;lt;-- this is an empty entry, meaning this version won't be shown) &lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://distro'''N'''site.org/distro-release-%1/distro-architecture%2.iso" rel="nofollow"&gt;http://distroNsite.org/distro-release-%1/distro-architecture%2.iso&lt;/a&gt;&lt;br /&gt;
Download location for the ISO or IMG file for the N&lt;strong&gt;-th distribution. %1 will be substituted with the specified version name (contents of "default-distro&lt;/strong&gt;N&lt;strong&gt;version-1.0"), while %2 will be substituted with the text specified in the field i386 if the version name contains "_x64", or with the text specified in the field amd64 if the version name doesn't contain "_x64". &lt;/strong&gt;&lt;br /&gt;
&lt;a href="http://releases.ubuntu.com/%1/ubuntu-%1-desktop-%2.iso" rel="nofollow"&gt;http://releases.ubuntu.com/%1/ubuntu-%1-desktop-%2.iso&lt;/a&gt; ]|[ &lt;a href="http://archive.ubuntu.com/ubuntu/dists/%1/main/installer-%2/current/images/netboot/boot.img.gz" rel="nofollow"&gt;http://archive.ubuntu.com/ubuntu/dists/%1/main/installer-%2/current/images/netboot/boot.img.gz&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;distroN&lt;strong&gt;format-iso &lt;/strong&gt;&lt;br /&gt;
Format of the file specified in the download URL. If it's an ISO file, leave it as "distroN&lt;strong&gt;format-iso", but if it's a floppy/hard disk image, change it to "distro&lt;/strong&gt;N&lt;strong&gt;format-img" &lt;/strong&gt;&lt;br /&gt;
distro1format-iso ]|[ distro4format-img &lt;/p&gt;
&lt;p&gt;someotherversionN&lt;strong&gt;-&lt;/strong&gt;M&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;
Same as default-distroN&lt;strong&gt;version-1.0&lt;/strong&gt;&lt;strong&gt;, only for versions other than the first one (&lt;/strong&gt;M&lt;strong&gt;-th version) for distribution number &lt;/strong&gt;N&lt;strong&gt;. If left empty, this version won't be shown. &lt;/strong&gt;&lt;br /&gt;
7.10 ]|&lt;span&gt;[ 7.04_x64 ]&lt;/span&gt;|&lt;span&gt;[edgy ]&lt;/span&gt;|&lt;span&gt;[ dapper_x64 ]&lt;/span&gt;|[ "" (&amp;lt;-- this is an empty entry, meaning this version won't be shown) &lt;/p&gt;
&lt;h3 id="releasing-a-plugin"&gt;Releasing a Plugin&lt;/h3&gt;
&lt;p&gt;Once done, you can release your plugin by going to &lt;strong&gt;File -&amp;gt; Release As_ in Qt Linguist, giving it a new name (which must begin with "unetbootin" and have the extension ".qm" to be properly recognized and loaded), then uploading the .qm file and adding it to the &lt;a class="" href="/p/unetbootin/wiki/listcustomversion/"&gt;List of Custom UNetbootin Versions and Plugins&lt;/a&gt;. _&lt;/strong&gt;&lt;/p&gt;
&lt;h3 id="releasing-a-standalone-executable"&gt;Releasing a Standalone Executable&lt;/h3&gt;
&lt;p&gt;If you'd prefer to bundle together your plugin and the UNetbootin executable as a single downloadable file, rather than releasing a seperate plugin, you can use a variety of self-extractor creators to do this. &lt;/p&gt;
&lt;p&gt;For example, for Windows, the 7-zip sfx creator can be used, as described at &lt;a href="http://www.msfn.org/board/lofiversion/index.php/t39048.html" rel="nofollow"&gt;http://www.msfn.org/board/lofiversion/index.php/t39048.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, download the following files: &lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://unetbootin.wiki.sourceforge.net/space/showimage/7zS.sfx"&gt;7zS.sfx&lt;/a&gt; &lt;br /&gt;
&lt;a class="" href="http://unetbootin.wiki.sourceforge.net/space/showimage/config.txt"&gt;config.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then, download the &lt;a class="" href="http://unetbootin.sourceforge.net/unetbootin-windows-latest.exe"&gt;Latest Release for Windows&lt;/a&gt; and rename it to unetbootin.exe &lt;/p&gt;
&lt;p&gt;Then, create an archive "unetbootin.7z" containing the files "unetbootin.exe" and "unetbootin_custom.qm". On Windows, this can be done via the &lt;a class="" href="http://www.7-zip.org/" rel="nofollow"&gt;7-zip&lt;/a&gt; GUI, or if on Linux, install the package &lt;em&gt;p7zip-full&lt;/em&gt; or your distribution's equivalent, and enter the command: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="n"&gt;z&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;unetbootin&lt;/span&gt;&lt;span class="mf"&gt;.7&lt;/span&gt;&lt;span class="n"&gt;z&lt;/span&gt; &lt;span class="n"&gt;unetbootin&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt; &lt;span class="n"&gt;unetbootin_custom&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;qm&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then, if on Windows, open a command line and enter: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;copy&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="n"&gt;zs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sfx&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;txt&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;unetbootin&lt;/span&gt;&lt;span class="mf"&gt;.7&lt;/span&gt;&lt;span class="n"&gt;z&lt;/span&gt; &lt;span class="n"&gt;unetbootin&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;customsfx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;windows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Or, if on Linux, enter: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="n"&gt;zS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sfx&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;txt&lt;/span&gt; &lt;span class="n"&gt;unetbootin&lt;/span&gt;&lt;span class="mf"&gt;.7&lt;/span&gt;&lt;span class="n"&gt;z&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;unetbootin&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;customsfx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;windows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now, you should have a standalone, self-extracting executable with UNetbootin and your plugin bundled in. &lt;/p&gt;
&lt;p&gt;Standalone Executable: &lt;a class="" href="http://downloads.sourceforge.net/unetbootin/unetbootin-ubuntu-customsfx-windows-248.exe"&gt;unetbootin-ubuntu-customsfx-windows-248.exe&lt;/a&gt;&lt;/p&gt;
&lt;h1 id="see-also"&gt;See Also&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;p&gt;&lt;a class="" href="/p/unetbootin/wiki/useplugin/"&gt;Using a UNetbootin Plugin&lt;/a&gt; &lt;br /&gt;
&lt;a class="" href="/p/unetbootin/wiki/buildcustomversion/"&gt;Building a Custom UNetbootin Version&lt;/a&gt; &lt;br /&gt;
&lt;a class="" href="/p/unetbootin/wiki/listcustomversion/"&gt;List of Custom UNetbootin Versions and Plugins&lt;/a&gt; (&lt;em&gt;publicly editable&lt;/em&gt;) &lt;/p&gt;&lt;/div&gt;</description><pubDate>Tue, 24 Jun 2014 15:13:09 -0000</pubDate><guid>https://sourceforge.net78e46b9c660b9743b963d2a53aaa2a18c8697d24</guid></item></channel></rss>