diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 00000000..d76aa5cc --- /dev/null +++ b/.cargo/config @@ -0,0 +1,6 @@ +## 配置cargo的国内源 (依赖很多所以还是需要慢慢等待,不至于卡死下载不了) +[source.crates-io] +replace-with = 'mirror' + +[source.mirror] +registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3104c131..b465aaeb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,11 +33,11 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' # 安装 pnpm - name: Install pnpm - run: npm install -g pnpm@9.2.0 + run: npm install -g pnpm@latest - name: Install dependencies run: pnpm install diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..6f19a334 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,14 @@ +version: "3.7" +services: + tauri: + image: ivangabriele/tauri:debian-bullseye-18 # 使用该镜像打包tauri + volumes: + - .:/app + command: + - "sh" + - "-c" + - | # 使用|表示下面的命令将按照顺序执行 + cd /app + npm config set registry https://registry.npmmirror.com + pnpm install + pnpm tauri build \ No newline at end of file