Cannot build WGT from web project using CLI

Original Created Aug 13, 2016 | Regeneration Apr 22, 2026

I'm trying to set up an automated build process for Tizen web applications using the command line interface. I've followed the CLI instructions from the Tizen documentation and have:

  1. Set up my bash profile with appropriate variables and paths
  2. Created a project using:
    tizen create web-project -p tv-samsung-public-2.4 -t BasicEmptyProject -n fooproject
    
  3. Created and saved a security profile in the correct location
  4. Configured the CLI with:
    tizen cli-config -g "profiles.path=/Users/ahujsak/tizen-sdk-data/ide/keystore/profiles.xml"
    

However, when I try to create a .wgt file using:

tizen package -t wgt --sign funkyducky -- fooproject

The command completes without errors but no .wgt file is generated.

Questions:

  1. Do I need a native project to convert a web project to WGT via CLI?
  2. Could the issue be related to not having a TPK file?
  3. Any insights would be appreciated, as I can create WGT files using the Eclipse IDE but want to use CLI exclusively.

Problem Understanding

The user is experiencing issues generating a WGT package from a Tizen web project using the CLI, despite following the documented steps. The package command completes but produces no output file.

Solution Methods

  1. Complete Build Process:

    • First build the web project:
      tizen build-web -- /path/to/your/project
      
    • Then clean the project:
      tizen clean -- /path/to/your/project
      
  2. Proper Project Structure:

    • Ensure you're working with the correct project path
    • Verify the project was created successfully and contains all necessary files
  3. Package Generation:

    • After successful build, generate the WGT package:
      tizen package --type wgt --sign YourProfileName -- /path/to/your/project/.buildResult
      

Code Examples

Complete workflow example:

# Create project
tizen create web-project -p tv-samsung-public-2.4 -t BasicEmptyProject -n myproject

# Build project
tizen build-web -- /Users/me/workspace/myproject

# Clean project
tizen clean -- /Users/me/workspace/myproject

# Generate certificate
tizen certificate -a MyCert -p password -f mycert

# Add security profile
tizen security-profiles add -n MyProfile -a ~/tizen-data/keystore/author/mycert.p12 -p password

# Package application
tizen package --type wgt --sign MyProfile -- /Users/me/workspace/myproject/.buildResult

Additional Tips

  • Verify your CLI configuration using:
    tizen cli-config -l
    
  • Ensure the security profile path is correctly set
  • Check the .buildResult directory for generated files
  • The process doesn't require a native project or TPK file for web applications

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.