Tizen TV packaging, install, remote-control, and live proof harness.
Generic platform mechanics for consumer app repos that need repeatable Samsung TV delivery checks.
pnpm add -D @putdotio/taiznOnly the latest npm release is supported.
Node: engines.node in package.json
Taizn drives the Tizen Studio CLI; install it with taizn sdk or by hand, then
make sure taizn check finds tizen and sdb.
Tizen Studio ships sdb and the JDK behind tizen as x86_64 macOS binaries.
On Apple Silicon Macs they run through Rosetta 2, which keeps signing on the
developer's local certificate profile:
softwareupdate --install-rosetta --agree-to-licenseWithout Rosetta, commands that resolve tizen or sdb fail with
RosettaRequired before running them. The Tizen TV emulator is x86-only, so
Apple Silicon Macs prove against a connected TV.
taizn sdk installs Tizen Studio and moves its signing state between machines.
None of these commands need a taizn.json.
pnpm exec taizn sdk install --dry-run
pnpm exec taizn sdk install --packages <package1,package2>
pnpm exec taizn sdk backup --dry-run [--full] [OUTPUT]
pnpm exec taizn sdk backup [--full] [OUTPUT]
pnpm exec taizn sdk restore --dry-run <archive.tar.gz>
pnpm exec taizn sdk restore <archive.tar.gz>| Command | Behavior |
|---|---|
sdk install |
Downloads the official web CLI installer for macOS or x86_64 Linux, installs it into ~/tizen-studio, optionally installs packages, then runs tizen version and sdb version. Reuses an existing install. |
sdk backup |
Archives ~/SamsungCertificate, ~/.tizen, and ~/tizen-studio-data/{keystore,profile}; --full adds the SDK, its data, extensions, and workspace. Defaults to ~/tizen-certs-<timestamp>.tar.gz (tizen-full- with --full). |
sdk restore |
Extracts a backup into the home directory. Rejects archives with entries outside the backup paths above. |
sdk install flags: --sdk-version (default 10.0; older Tizen Studio
releases use a different installer name, so pass --installer-url),
--studio-dir, --download-dir (default: a private temporary directory),
--installer-url,
--packages, --proxy (package-manager proxy mode, default direct), and
--show-packages (Samsung's catalog download can hang). With a non-default
--studio-dir, set TAIZN_TIZEN_CLI and TAIZN_SDB to the installed tools.
Samsung's installer only accepts a --studio-dir inside the home directory,
without spaces or non-ASCII characters.
Backups hold signing certificates and device keys. Archives are staged
privately, written with mode 0600, and never replace an existing path; pick a
new output outside the archived paths for each backup and keep it out of
version control. Both commands accept only files, directories, and relative
symlinks that stay inside the backup paths. Restore extracts into a private
staging directory, then moves the result into home, merging existing folders
but never writing through an existing symlink; a full restore refuses to run
while ~/tizen-studio exists, so move it aside first. Backup refuses symlinked
source folders and runs on macOS and Linux only.
Create taizn.json in the app directory, keep .taizn/ ignored, then run:
pnpm exec taizn check
pnpm exec taizn package
pnpm exec taizn install
pnpm exec taizn runCommon project files:
| Path | Purpose |
|---|---|
taizn.json |
App build, widget, signing, and variant config |
.taizn/.env |
Optional local secrets read by Node |
.taizn/certificates/ |
Optional local author and distributor certs |
.taizn/remote.json |
Optional paired Samsung TV remote token |
.taizn/seller.json |
Local Seller Office browser connection state |
.taizn/seller/ |
Dedicated human-owned Chrome profile |
.taizn/build/ |
Generated package staging and output |
{
"build": {
"command": ["pnpm", "build"],
"output": "dist",
"requiredFiles": ["main.css", "main.js"]
},
"signing": {
"certificateDir": ".taizn/certificates",
"profile": "my-tizen-profile"
},
"widget": {
"configXml": "platforms/tizen/config.xml",
"indexHtml": "platforms/tizen/index.html",
"injectWebapis": true,
"rewriteAssetUrls": false,
"variants": {
"development": {
"applicationId": "ExampleDev.app",
"bundleName": "example-dev",
"icon": "platforms/tizen/icons/dev.png",
"name": "Example Dev",
"packageId": "ExampleDev"
},
"production": {
"applicationId": "Example.app",
"bundleName": "example",
"icon": "platforms/tizen/icon.png",
"indexHtml": "platforms/tizen/hosted.html",
"injectWebapis": true,
"name": "Example",
"packageId": "Example",
"rewriteAssetUrls": false
}
}
}
}Variant indexHtml, injectWebapis, and rewriteAssetUrls values override
the top-level widget values. Variant excludeFiles values are added to
top-level widget.excludeFiles. Use them when development packages should
bundle local app assets but production packages should load hosted asset URLs.
Prefer JSON and artifacts when taizn feeds another tool:
pnpm exec taizn describe
pnpm exec taizn check --json --fields targets,tools.sdb
pnpm exec taizn prove --dry-run --json --fields application.id,target Example.app
pnpm exec taizn prove --json --artifact .taizn/proof.json Example.app
pnpm exec taizn prepare submission --json --artifact .taizn/submission.json package.wgt
pnpm exec taizn validate submission --json --fields ok,problems
pnpm exec taizn seller login --dry-run --json
pnpm exec taizn seller apps list --json --artifact .taizn/seller-apps.json
pnpm exec taizn tv doctor --connect --json --artifact .taizn/tv-doctor.jsonUse --dry-run before mutating platform state when the command supports it.
Artifact paths must resolve inside the physical app directory, symlinks
included; .taizn/ is the normal home for proof state. The check runs before
writing and does not guard against concurrent filesystem changes.
Finite SDB queries, target connections, and captured launch commands time out after 30 seconds per subprocess; builds, signing, and installs have no deadline.
| Command | Purpose |
|---|---|
describe |
Print the command surface as JSON (no flags) |
check |
Verify Tizen CLI, sdb, and target readiness |
apps |
List installed target applications |
launch |
Start an already-installed app |
prove |
Resolve, launch, and record installed-app proof |
inspect wgt |
Read neutral .wgt archive metadata |
prepare submission |
Create a deterministic signed-WGT manifest |
validate submission |
Check generic package metadata |
probe hosted-assets |
Discover or probe hosted asset URLs |
logs capture |
Record a bounded sdb dlog -d snapshot |
targets list / targets current |
Report configured and connected target state |
profile |
Import local Tizen signing certificates |
package |
Build and sign a .wgt |
install |
Package and sideload the widget |
run |
Launch the configured variant application |
sdk install |
Install and verify the Tizen Studio CLI |
sdk backup / sdk restore |
Archive or restore Tizen signing state |
seller login |
Open the human-owned Seller Office browser profile |
seller apps list |
Read sanitized Seller Office application status |
tv doctor / tv info |
Inspect Samsung TV remote-control readiness |
tv pair / tv press / tv script |
Pair and send Samsung remote-control key sequences |
See Samsung TV Remote for pairing, environment, and limits.
Set these in .taizn/.env or export them in the shell:
TAIZN_CERT_PASSWORD=...
TAIZN_DIST_PASSWORD=...
TAIZN_VARIANT=development
TAIZN_TARGET=<tv-ip>:26101
TAIZN_TIZEN_CLI=~/tizen-studio/tools/ide/bin/tizen
TAIZN_SDB=~/tizen-studio/tools/sdb
TAIZN_SELLER_BROWSER=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
TAIZN_TV_HOST=<tv-ip>
TAIZN_TV_PORT=8002
TAIZN_TV_PROTOCOL=wss
TAIZN_TV_TOKEN=<paired-remote-token>Samsung TV Remote lists the remaining
TAIZN_TV_* settings.
taizn tv uses TAIZN_TV_HOST, or the host part of TAIZN_TARGET when no TV
host is set. taizn tv pair writes the paired remote token to
.taizn/remote.json; keep .taizn/ ignored.
taizn seller login opens a dedicated visible Chrome profile under .taizn/
and stores only its localhost DevTools port in .taizn/seller.json; Taizn never
reads Samsung credentials. See Seller Office for the
read-only workflow and recovery steps.
taizn owns platform mechanics: Tizen CLI, sdb, widget archives, local
submission preparation, Samsung remote keys, target inventory, logs,
hosted-asset probes, and proof artifacts. Consumer apps own product journeys,
credentials, app IDs, content IDs, account state, visual assertions, release
decisions, and Samsung TV Seller Office portal mutations. Taizn's Seller Office
surface is limited to a human-owned local browser session and sanitized
read-only discovery.
