Skip to content

Commit ba76a26

Browse files
author
BookDock Dev
committed
feat: 修改流水线
1 parent 20805fd commit ba76a26

7 files changed

Lines changed: 86 additions & 18 deletions

File tree

.github/workflows/android-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
- "v*.*.*"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
build:
1114
runs-on: ubuntu-latest
12-
permissions:
13-
contents: write
1415

1516
steps:
1617
- name: Checkout

.github/workflows/feat-test-release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
- "feat/test"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
build-desktop:
1114
name: Build Desktop (${{ matrix.platform }})
12-
permissions:
13-
contents: write
1415
strategy:
1516
matrix:
1617
include:
@@ -69,8 +70,6 @@ jobs:
6970
build-android:
7071
name: Build Android
7172
runs-on: ubuntu-latest
72-
permissions:
73-
contents: write
7473
steps:
7574
- name: Checkout
7675
uses: actions/checkout@v4
@@ -124,5 +123,4 @@ jobs:
124123
draft: true
125124
files: |
126125
${{ steps.prepare_apk.outputs.apk_path }}
127-
env:
128-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126+
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"dependencies": "3fb22ee966d55a0e24499cc5105e829fdb8814a3",
2+
"dependencies": "4c6c46f85ef3aae30206750b8003384fc449d9be",
33
"devDependencies": "bf2b9e763f70fb9f3e3cd3badd4d6b47189ccdd5"
44
}

apps/mobile/ios/BookDock.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
);
372372
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
373373
PRODUCT_BUNDLE_IDENTIFIER = com.bookdock.app;
374-
PRODUCT_NAME = "BookDock";
374+
PRODUCT_NAME = BookDock;
375375
SWIFT_OBJC_BRIDGING_HEADER = "BookDock/BookDock-Bridging-Header.h";
376376
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
377377
SWIFT_VERSION = 5.0;
@@ -403,7 +403,7 @@
403403
);
404404
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
405405
PRODUCT_BUNDLE_IDENTIFIER = com.bookdock.app;
406-
PRODUCT_NAME = "BookDock";
406+
PRODUCT_NAME = BookDock;
407407
SWIFT_OBJC_BRIDGING_HEADER = "BookDock/BookDock-Bridging-Header.h";
408408
SWIFT_VERSION = 5.0;
409409
TARGETED_DEVICE_FAMILY = "1,2";

apps/mobile/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"react-native-pdf": "^7.0.4",
4848
"react-native-safe-area-context": "4.12.0",
4949
"react-native-screens": "~4.4.0",
50+
"react-native-web": "~0.19.13",
5051
"react-native-webview": "13.12.5",
5152
"socket.io-client": "^4.8.3",
5253
"zustand": "^4.5.0"

apps/mobile/src/screens/BookDetailScreen.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ export function BookDetailScreen() {
121121
navigation.navigate('Reader', { book });
122122
}, [navigation, book]);
123123

124-
const handleTTS = useCallback(async () => {
125-
Alert.alert('提示', '功能正在开发中,敬请期待!');
126-
}, []);
124+
const handleTTS = useCallback(() => {
125+
navigation.navigate('TTSReader', { book });
126+
}, [navigation, book]);
127127

128128
const handleToggleFavorite = useCallback(async () => {
129129
try {

pnpm-lock.yaml

Lines changed: 72 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)