Question
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:
- Set up my bash profile with appropriate variables and paths
- Created a project using:
tizen create web-project -p tv-samsung-public-2.4 -t BasicEmptyProject -n fooproject - Created and saved a security profile in the correct location
- 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:
- Do I need a native project to convert a web project to WGT via CLI?
- Could the issue be related to not having a TPK file?
- Any insights would be appreciated, as I can create WGT files using the Eclipse IDE but want to use CLI exclusively.
Answer
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
-
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
- First build the web project:
-
Proper Project Structure:
- Ensure you're working with the correct project path
- Verify the project was created successfully and contains all necessary files
-
Package Generation:
- After successful build, generate the WGT package:
tizen package --type wgt --sign YourProfileName -- /path/to/your/project/.buildResult
- After successful build, generate the WGT package:
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