Github action that installs and runs the Tizen cli tools in a docker container for Samsung TV app development.
jobs:
pack-tizen:
name: Tizen Kiosk Package
runs-on: ubuntu-latest
steps:
- name: Create Package
uses: grubbrr/docker-tizen-ci-cd@v2.1.5
with:
command: web
app-directory: tizen
cert-pw: ${{ secrets.tizen_cert_pw }}
dist-cert: fromWorkspaceRoot/dist_cert_path.p12
dist-cert-pw: ${{ secrets.tizen_dist_cert_pw }}
zip: true
version: 1.0.1
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
${{ steps.create_package.outputs.file }}
${{ steps.create_package.outputs.zip }}
Required The type of application to build and package for tizen. (web|native)
Required the location of the tizen app folder inside the github repo. Default "tizen"
.
Required a password to use for the certificate that the package will be signed with. Use Github secrets.
Required the location of a distribution certificate to use with the generated certificate.
only required because the current cert shipped with tizen no longer works
Required the password for the distribution certificate.
only required because the current cert shipped with tizen no longer works, otherwise only required if dist-cert is set
The name of the cert that will be used for signing the app. Default "devcert"
.
Zip final package for deployment. Default "false"
(true|false).
When generating a zip file, the pkginfo.xml type field. Default "Kiosk"
.
Files to be excluded from a package. Default ".build/* .build .sign/* .sign webUnitTest/* webUnitTest .externalToolBuilders/* .externalToolBuilders .buildResult/* .buildResult .settings/* .settings .package/* .package .tproject .project .sdk_delta.info .rds_delta *.wgt .tizen-ui-builder-tool.xml *.zip"
The version that the package will be.
The file and location generated by the packager, currently the wgt
The zip file generated by the
It is encouraged if building on windows you limit the memory that WSL can consume. In powershell run the following:
wsl --shutdown
notepad "$env:USERPROFILE/.wslconfig"
Ensure this file has the folowing lines or something similar:
[wsl2]
memory=3GB # Limits VM memory in WSL 2 up to 3GB
processors=4 # Makes the WSL 2 VM use two virtual processors
For local dev updating of the entrypoint.sh
file in the docker image:
docker image build -t docker-tizen-ci-cd . # --no-cache # when changing builder layers
docker run -v "C:\projects\kiosk-v2":"/tizen" -e GITHUB_WORKSPACE="/tizen" --rm docker-tizen-ci-cd web tizen password "somePath/dist-cert.p12" "distPassword" cert "*.zip" true Kiosk 1.0.0
docker build -t docker-tizen-ci-cd -t docker-tizen-ci-cd:latest -t vipero07/docker-tizen-ci-cd:latest -t vipero07/docker-tizen-ci-cd:v2.1.5 -t ghcr.io/grubbrr/docker-tizen-ci-cd:latest -t ghcr.io/grubbrr/docker-tizen-ci-cd:v2.1.5 -t ghcr.io/vipero07/docker-tizen-ci-cd:latest -t ghcr.io/vipero07/docker-tizen-ci-cd:v2.1.5 .; docker push vipero07/docker-tizen-ci-cd:latest; docker push ghcr.io/grubbrr/docker-tizen-ci-cd:latest; docker push ghcr.io/vipero07/docker-tizen-ci-cd:latest; docker push vipero07/docker-tizen-ci-cd:v2.1.5; docker push ghcr.io/grubbrr/docker-tizen-ci-cd:v2.1.5; docker push ghcr.io/vipero07/docker-tizen-ci-cd:v2.1.5;
dockerhub image vipero07/docker-tizen-ci-cd