Skip to content

Commit 4fdbb21

Browse files
fix: disable se 1.1.0.2 device while device inner & upgrade node version & auto create changelog and release (#533)
fix: disable se 1102 feat: detail firm version fix: version error fix: web-usb in expo-playound --------- Co-authored-by: ByteZhang <ByteZhang@protonmail.com>
1 parent 7a8e977 commit 4fdbb21

File tree

46 files changed

+1995
-431
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1995
-431
lines changed

.github/templates/404.html

Lines changed: 24 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<!DOCTYPE html>
22
<html>
3+
34
<head>
45
<meta charset="UTF-8">
56
<title>Hardware SDK Examples</title>
67
<script>
78
// 简化的路由分发器
8-
(function() {
9+
(function () {
910
const path = window.location.pathname;
1011
const search = window.location.search;
1112
const hash = window.location.hash;
1213
const fullUrl = search + hash;
13-
14+
1415
console.log('Route dispatcher: handling path', path);
15-
16+
1617
// 智能路由分发逻辑 - 保持原始URL不变,让SPA自己处理路由
1718
if (path.startsWith('/expo-playground/')) {
1819
// expo-playground 的子路由,保存原始路径信息
@@ -26,9 +27,9 @@
2627
}
2728
return;
2829
}
29-
30+
3031
if (path.startsWith('/expo-example/')) {
31-
// expo-example 的子路由,保存原始路径信息
32+
// expo-example 的子路由,保存原始路径信息
3233
if (path !== '/expo-example/' && path !== '/expo-example') {
3334
console.log('Handling expo-example sub-route:', path);
3435
// 保存完整的原始URL到sessionStorage供应用恢复路由
@@ -39,42 +40,28 @@
3940
}
4041
return;
4142
}
42-
43-
// 根路径或其他未匹配路径,重定向到 expo-example 首页
44-
if (path === '/' || path === '' || !path.startsWith('/expo-example/') && !path.startsWith('/expo-playground/')) {
45-
console.log('Route dispatcher: redirecting to expo-example');
46-
window.location.replace('/expo-example/api-payload' + fullUrl);
47-
return;
48-
}
43+
44+
// 所有其他路径都重定向到 expo-playground
45+
console.log('Route dispatcher: redirecting', path, 'to expo-playground');
46+
window.location.replace('/expo-playground' + fullUrl);
4947
})();
5048
</script>
5149
</head>
50+
5251
<body>
53-
<div style="font-family: Arial, sans-serif; text-align: center; margin-top: 50px;">
54-
<h2>Hardware SDK Examples</h2>
55-
<p>Choose an example to explore:</p>
56-
<ul style="list-style: none; padding: 0; max-width: 400px; margin: 20px auto;">
57-
<li style="margin: 15px 0; padding: 15px; border: 1px solid #ddd; border-radius: 8px;">
58-
<a href="/expo-example/" style="color: #007bff; text-decoration: none; display: block;">
59-
<strong>Expo Example</strong>
60-
<br>
61-
<small style="color: #666;">React Native Web with Expo SDK</small>
62-
</a>
63-
</li>
64-
<li style="margin: 15px 0; padding: 15px; border: 1px solid #ddd; border-radius: 8px;">
65-
<a href="/expo-playground/" style="color: #007bff; text-decoration: none; display: block;">
66-
<strong>OneKey Developer Portal</strong>
67-
<br>
68-
<small style="color: #666;">Modern React with Webpack</small>
69-
</a>
70-
</li>
71-
</ul>
72-
<p style="margin-top: 30px; font-size: 14px; color: #666;">
73-
Current path: <code id="current-path"></code>
52+
<div style="font-family: Arial, sans-serif; text-align: center; margin-top: 100px;">
53+
<h2>OneKey Hardware SDK</h2>
54+
<p>Redirecting to Developer Portal...</p>
55+
<div style="margin: 30px 0;">
56+
<a href="/expo-playground/"
57+
style="color: #007bff; text-decoration: none; padding: 15px 30px; border: 2px solid #007bff; border-radius: 8px; display: inline-block; font-weight: bold;">
58+
Go to Developer Portal
59+
</a>
60+
</div>
61+
<p style="font-size: 14px; color: #666; margin-top: 20px;">
62+
If you are not redirected automatically, click the button above.
7463
</p>
75-
<script>
76-
document.getElementById('current-path').textContent = window.location.pathname;
77-
</script>
7864
</div>
7965
</body>
80-
</html>
66+
67+
</html>

.github/workflows/build-example-android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Use Node.js 20
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: '20'
16+
node-version: '22'
1717

1818
- name: Set up JDK 17
1919
uses: actions/setup-java@v2

.github/workflows/build-example-desktop.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,46 @@ jobs:
88
env:
99
PROJECT_PATH: packages/connect-examples/electron-example
1010
steps:
11-
- uses: actions/checkout@v4
12-
- name: Setup Node.js
13-
uses: actions/setup-node@v4
14-
with:
15-
node-version: '20'
16-
registry-url: 'https://registry.npmjs.org'
17-
18-
- name: Install dependencies
19-
run: |
20-
yarn
21-
yarn bootstrap
22-
23-
- name: Build Target
24-
run: |
25-
yarn build
26-
27-
- name: Build Desktop Application
28-
env:
11+
- uses: actions/checkout@v4
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '22'
16+
registry-url: 'https://registry.npmjs.org'
17+
18+
- name: Install dependencies
19+
run: |
20+
yarn
21+
yarn bootstrap
22+
23+
- name: Build Target
24+
run: |
25+
yarn build
26+
27+
- name: Build Desktop Application
28+
env:
2929
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
run: yarn build:example:desktop
31-
32-
- name: Upload Mac x64 Artifacts
33-
uses: actions/upload-artifact@v4
34-
with:
35-
name: mac-x64-example-desktop
36-
path: |
37-
${{ env.PROJECT_PATH }}/out/*x64.dmg
38-
${{ env.PROJECT_PATH }}/out/*mac-x64.zip
39-
40-
- name: Upload Mac arm64 Artifacts
41-
uses: actions/upload-artifact@v4
42-
with:
43-
name: mac-arm64-example-desktop
44-
path: |
45-
${{ env.PROJECT_PATH }}/out/*arm64.dmg
46-
${{ env.PROJECT_PATH }}/out/*mac-arm64.zip
47-
48-
- name: Upload Windows Artifacts
49-
uses: actions/upload-artifact@v4
50-
with:
51-
name: win-x64-example-desktop
52-
path: |
53-
${{ env.PROJECT_PATH }}/out/*.exe
30+
run: yarn build:example:desktop
31+
32+
- name: Upload Mac x64 Artifacts
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: mac-x64-example-desktop
36+
path: |
37+
${{ env.PROJECT_PATH }}/out/*x64.dmg
38+
${{ env.PROJECT_PATH }}/out/*mac-x64.zip
39+
40+
- name: Upload Mac arm64 Artifacts
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: mac-arm64-example-desktop
44+
path: |
45+
${{ env.PROJECT_PATH }}/out/*arm64.dmg
46+
${{ env.PROJECT_PATH }}/out/*mac-arm64.zip
47+
48+
- name: Upload Windows Artifacts
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: win-x64-example-desktop
52+
path: |
53+
${{ env.PROJECT_PATH }}/out/*.exe

.github/workflows/build-example-web.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Node.js
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: '20'
20+
node-version: '22'
2121
registry-url: 'https://registry.npmjs.org'
2222
- name: Install Dependencies
2323
run: |
@@ -63,7 +63,7 @@ jobs:
6363
- name: Setup Node.js
6464
uses: actions/setup-node@v3
6565
with:
66-
node-version: '20'
66+
node-version: '22'
6767
registry-url: 'https://registry.npmjs.org'
6868
- name: Install Dependencies
6969
run: |

.github/workflows/build-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
node-version: [20.x]
22+
node-version: [22]
2323

2424
steps:
2525
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)