mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-03-13 00:18:13 -04:00
🐛 Fix: fix sharp build error on MacOS M1 chip
This commit is contained in:
parent
198157d50c
commit
1240afa468
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
@ -42,10 +42,7 @@ jobs:
|
||||
if: matrix.os == 'macos-11'
|
||||
run: |
|
||||
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
|
||||
PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
|
||||
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
|
||||
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
|
||||
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
|
||||
|
||||
# step2: install node env
|
||||
- name: Install Node.js
|
||||
@ -60,7 +57,22 @@ jobs:
|
||||
|
||||
|
||||
# step3: yarn
|
||||
- name: Yarn install
|
||||
- name: Yarn install macos
|
||||
if: matrix.os = 'macos-11'
|
||||
run: |
|
||||
yarn
|
||||
yarn global add xvfb-maybe
|
||||
npm rebuild --platform=darwin --arch=arm64 sharp
|
||||
|
||||
- name: Yarn install windows
|
||||
if: matrix.os = 'windows-latest'
|
||||
run: |
|
||||
yarn
|
||||
yarn global add xvfb-maybe
|
||||
npm rebuild --platform=win32 --arch=ia32 sharp
|
||||
|
||||
- name: Yarn install linux
|
||||
if: matrix.os = 'ubuntu-latest'
|
||||
run: |
|
||||
yarn
|
||||
yarn global add xvfb-maybe
|
||||
|
@ -63,6 +63,7 @@
|
||||
"pinia-plugin-persistedstate": "^3.1.0",
|
||||
"qiniu": "^7.8.0",
|
||||
"qrcode.vue": "^3.3.3",
|
||||
"sharp": "^0.31.3",
|
||||
"shell-path": "2.1.0",
|
||||
"upyun": "^3.4.6",
|
||||
"uuid": "^9.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user