diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index e1eb4ff..996ad5e 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -37,7 +37,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'pnpm' - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install # 只安装intel版的sharp库即可, m1上可以运行intel的代码 - run: pnpm install --platform=darwin --arch=x64 sharp - run: cd ./client && pnpm install && cd .. diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 9e84352..f7553c9 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -34,7 +34,7 @@ jobs: cache: 'pnpm' # 先执行electron的构建, 节约调试时间 - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install # sharp需要单独安装 # - run: npm install --platform=win32 --arch=x64 sharp # - run: npm rebuild --platform=win32 --arch=ia32 sharp