Package Structure

A Synology package is a SPK file in tar format, containing metadata and files as in the following:

File/Folder Name Description File/Folder Type DSM Requirement
INFO This file contains the information displayed in Package Center or to control the flow of installation. (Please refer to INFO section for more information) File 2.0-0731
WIZARD_UIFILES Optional. This folder contains files where descriptions of UI components are shown during the installation, un-installation, and upgrading process.

(Please refer to WIZARD_UIFILES section for more information)
Folder (Contains install_uifile, upgrade_uifile, uninstall_uifile, ...) 3.2-1922
package.tgz This is a compressed file, containing all the files that are required, such as executable binary, library, or UI files.

(Please refer to package.tgz section for more information)
.tgz File 2.0-0731
scripts This folder contains shell scripts which are executed during the installation, uninstalling, upgrading, starting, and stopping processes.

(Please see the scripts section for more information)
Folder (Contains preinst, postinst, preuninst, postunist, preupgrade, postupgrade, start-stop-status) 2.0-0731
conf Optional. This folder contains configurations.

Note:
1. In DSM 4.2 ~ DSM 5.2, if you want to configure files within it, the support_conf_folder key in the INFO file must be set to "yes".
2. In DSM 6.0, you don't need to define the support_conf_folder key in the INFO file.
(Please refer to conf section for more information)
Folder (contains PKG_DEPS, PKG_CONX, ...) 4.2-3160
LICENSE Optional. This file is shown in the installation process, and must be less than 1 MB. File 3.2-1922
PACKAGE_ICON.PNG 72 x 72 .png image is shown in Package Center .png file 3.2-1922
PACKAGE_ICON_120.PNG

(Deprecated)
120 x 120 .png image is shown in Package Center.

Note: It is not compatible with all DSM versions because the icon will not be installed in DSM 4.1 or older. If your package can be installed in DSM 4.1 or older, please refer to the next section to define package_icon_120 in the INFO file instead of taking PACKAGE_ICON_120.PNG.
.png file 4.2-3160 ~ 4.3-3810
PACKAGE_ICON_256.PNG 256 x 256 .png image is shown in Package Center.

Note: It is not compatible with all DSM versions because the icon will not be installed in DSM 4.3 or older. If your package can be installed in DSM 4.3 or older, please refer next section to define package_icon_256 in INFO file to instead of taking PACKAGE_ICON_256.PNG.
.png file 5.0-4400

Note: