@foxreis/tizentube 1.14.5 → 1.14.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -1,2 +1,2 @@
1
- github: [reisxd]
1
+ github: [reisxd]
2
2
  buy_me_a_coffee: reisxd
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,78 @@
1
+ name: Build TizenTube Standalone and Release
2
+
3
+
4
+ on:
5
+ push:
6
+ tags:
7
+ - 'v*.*.*'
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Clone repo with full history and tags
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0 # fetch full history for tags
17
+ fetch-tags: true
18
+
19
+ - name: Fetch tags (safety)
20
+ run: |
21
+ git fetch --tags --force --prune
22
+ - name: Determine release tag
23
+ id: version
24
+ run: |
25
+ TAG=$(git describe --tags --abbrev=0 2>/dev/null || true)
26
+ if [ -z "$TAG" ]; then
27
+ echo "No tags found; deriving from config.xml or fallback"
28
+ if [ -f standalone/config.xml ]; then
29
+ # Extract version from config.xml's version attribute
30
+ CFG_VER=$(sed -n 's/.*version="\([^"]*\)".*/\1/p' standalone/config.xml | head -n1)
31
+ if [ -n "$CFG_VER" ]; then
32
+ TAG=v$CFG_VER
33
+ else
34
+ TAG=v0.0.0-${GITHUB_SHA:0:7}
35
+ fi
36
+ else
37
+ TAG=v0.0.0-${GITHUB_SHA:0:7}
38
+ fi
39
+ fi
40
+ echo "RELEASE_VERSION=$TAG" >> $GITHUB_ENV
41
+
42
+ - name: Install modules, transpile service and build service for DIAL
43
+ working-directory: service
44
+ run: |
45
+ npm install
46
+ npx rollup -c rollup.config.js
47
+
48
+ - name: Install modules, transpile service and build service
49
+ working-directory: standalone/service
50
+ run: |
51
+ npm install
52
+ npm install -g @vercel/ncc https://github.com/reisxd/tizen.js/tarball/main
53
+ npm run build
54
+ rm -rf node_modules
55
+
56
+ - name: Prepare Tizen Certificate
57
+ run: |
58
+ echo "${{ secrets.TIZEN_AUTHOR_KEY }}" | base64 -d > "${GITHUB_WORKSPACE}/TizenTube-author.p12"
59
+
60
+ - name: Build TizenTube
61
+ working-directory: standalone
62
+ run: |
63
+ mkdir release
64
+ tizenjs build . -t wgt -o release/TizenTube.wgt --author "${GITHUB_WORKSPACE}/TizenTube-author.p12" --authorPwd '${{ secrets.TIZEN_AUTHOR_KEY_PW }}' -p public --ignore node_modules,/.*\.wgt$/,/userwidget/,/release/
65
+
66
+ - name: Upload TizenTube package artifact for Old Tizen
67
+ uses: actions/upload-artifact@v4
68
+ with:
69
+ name: app-${{ github.sha }}-old.wgt
70
+ path: standalone/release/TizenTube.wgt
71
+
72
+ - name: Release TizenTube Build Results
73
+ uses: softprops/action-gh-release@v1
74
+ with:
75
+ tag_name: ${{ env.RELEASE_VERSION }}
76
+ target_commitish: ${{ github.sha }}
77
+ files: |
78
+ standalone/release/*