File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,25 @@ yarn run test
5353```
54547 . 提交代码,并 PR 主仓库的 main 分支
5555
56- ## 3. 应用架构设计
56+ ## 3. 在 Safari 里运行
57+
58+ 1 . 重复上述步骤 1-4
59+ 2 . 编译兼容 Safari 的代码,替换上述步骤 5 的指令即可
60+ ``` shell
61+ npm run dev:safari
62+ ```
63+ 3 . 使用 Xcode 内置工具 safari-web-extension-converter 将 Chrome 扩展转换成 Safari 扩展
64+ ``` shell
65+ [YOUR_PATH]/Xcode.app/Contents/Developer/usr/bin/safari-web-extension-converter dist_dev_safari
66+ ```
67+ 项目根目录下会生成一个文件夹 Timer_Safari_DEV,同时 Xcode 会自动打开该文件夹
68+ 4 . 在 Xcode 里运行打开的项目即可
69+
70+ ## 4. 应用架构设计
5771
5872> todo
5973
60- ## 4 . 目录结构
74+ ## 5 . 目录结构
6175
6276``` plain
6377project
@@ -117,6 +131,7 @@ project
117131└───webpack # webpack 打包配置
118132 | webpack.common.ts # 基础配置
119133 | webpack.dev.ts # 开发环境配置
134+ | webpack.dev.safari.ts # Safari 开发环境配置
120135 | webpack.prod.ts # 生产配置
121136
122137```
You can’t perform that action at this time.
0 commit comments