Plugin packages are simple ZIP files with a ".zpl" extension. So to create a plugin package, simply zip the folder containing your main.lua file and change the extension to .zpl.
It can now be installed in Appetizer using the "Install" button of the Plugin tab.