<?xml version="1.0" encoding="UTF-8"?>
<package>
    <![CDATA[
-------------------------------------------
Packaging a Tizen Application with Signing
-------------------------------------------

The command packages the Tizen application with signing. If there is a package
file in the options, the package is re-signed. The Tizen application is signed
with a certified profile in the profiles.xml file. You can create the default
profile from the Tizen Studio, which generates the file in a hidden directory
in your workspace (<workspace>/.metadata/.plugins/org.tizen.common.sign
/profiles.xml). Sets the path of the profiles.xml file before packaging the
Tizen application (by using the tizen cli-config command).


Syntax:
    tizen package [options]

Options:
    -t, --type {tpk|wgt}
        Specifies the package type. You can use tpk for a Tizen native package
        or wgt for a Tizen web package.
    -s, --sign <security profile>
        Specifies the security profile name to use for signing.
    -S, --strip {on|off}
        Determines whether the native binary should be stripped or not.
        The default value is off. This option only works when the native binary
        is based on the arm architecture and Release build configuration.
        This option is only for the native package.
    -- <build output path>
        Specifies the build output path. If this is a package file, the package
        is re-signed.

Examples:
    Package the project:
        > tizen package -t tpk -s MyProfile -- C:\Users\workspace\basic\Debug
        Initialize... OK
        Copying files... OK
        Signing... OK
        Zip path: C:\Users\workspace\basic\Debug\org.tizen.basic-1.0.0-i386.tpk
          adding: bin/  (in=0) (out=0) (stored 0%)
          adding: bin/basic       (in=11422) (out=4939) (deflated 57%)
          adding: tizen-manifest.xml    (in=428) (out=247) (deflated 42%)
          adding: lib/  (in=0) (out=0) (stored 0%)
          adding: signature1.xml        (in=4254) (out=1971) (deflated 54%)
          adding: shared/       (in=0) (out=0) (stored 0%)
          adding: shared/data/  (in=0) (out=0) (stored 0%)
          adding: shared/trusted/       (in=0) (out=0) (stored 0%)
          adding: shared/res/   (in=0) (out=0) (stored 0%)
          adding: shared/res/basic.png    (in=57662) (out=18633) (deflated 68%)
          adding: author-signature.xml  (in=4132) (out=2174) (deflated 47%)
          adding: res/  (in=0) (out=0) (stored 0%)
        total bytes=77898, compressed=27964 -> 64% savings
        Zipping... OK
        Package File Location: C:\Users\workspace\basic\Debug\org.tizen.basic-1
        .0.0-i386.tpk

    Re-sign the package:
        > tizen package -t tpk -s MyProfile -- C:\Users\workspace\basic\Debug\o
        rg.tizen.basic-1.0.0-i386.tpk
        Author certificate: C:\tizen-sdk-data\keystore\author\mycert.p12
        Distributor1 certificate : C:\tizen-sdk\tools\certificate-generator\cer
        tificates\distributor\tizen-distributor-signer.p12
        Package (C:\Users\workspace\basic\Debug\org.tizen.basic-1.0.0-i386.tpk)
        is created successfully.
    ]]>
</package>
