2 Star 12 Fork 18

TangSengDaoDao / TangSengDaoDaoWeb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

运行

  1. yarn install

  2. yarn dev

发布镜像

修改api地址 apps/web/src/index.tsx 修改 WKApp.apiClient.config.apiURL = "/api/v1/"

make deploy

PC端运行

tauri 环境安装 (https://tauri.app/v1/guides/getting-started/prerequisites)

调试

yarn tauri dev

打包

yarn tauri build
(window打包的时候 要去掉package.json里的 build里的REACT_APP_VERSION=$npm_package_version 要不然执行yarn tauri build 会报错) (如果需要打包M1架构的包 需要安装 aarch64-apple-darwin(执行:rustup target add aarch64-apple-darwin))

yarn tauri build --target aarch64-apple-darwin (M1架构的包)

yarn tauri build --target universal-apple-darwin (通用架构,生成可在 Apple 芯片和基于 Intel 的 Mac 上运行的通用 macOS 二进制文件。)

其他技巧

icon生成

tauri icon [ICON-PATH]

准备一张1024x1024的icon 执行上面命令 即可生成各种尺寸的icon

icon.icns = macOS
icon.ico = MS Windows
*.png = Linux

注意

添加依赖

yarn workspace @tsdaodao/web add react-avatar-editor

使用Github Action 自动构建各端PC版本

需要先全局安装 @tauri-apps/cli yarn global add @tauri-apps/cli

tauri signer generate -w ~/.tauri/tsdaodao.key

上面 的命令会自动生成一个公钥、私钥对。公钥可以公开分享,私钥必须严密保存。

在Github Secrets中 配置 TAURI_PRIVATE_KEY 和 TAURI_KEY_PASSWORD

(参考:https://www.banyudu.com/posts/tauri-version-release-and-update-guide)

自动更新

  1. 修改 tauri.conf.json 里的 updater.pubkey的内容(上面通过tauri signer generate 生成的公钥)

  2. 修改 tauri.conf.json 里的 updater.endpoints 的内容为自己服务器的更新地址

空文件

简介

唐僧叨叨Web版本 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/TangSengDaoDao/TangSengDaoDaoWeb.git
git@gitee.com:TangSengDaoDao/TangSengDaoDaoWeb.git
TangSengDaoDao
TangSengDaoDaoWeb
TangSengDaoDaoWeb
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891