fix: fix mac x64 upgrade

This commit is contained in:
purocean
2022-01-13 16:36:40 +08:00
parent 83a8d5f742
commit 87cda191e5
+3
View File
@@ -63,9 +63,12 @@ jobs:
if: matrix.platform == 'mac'
run: |
yarn run electron-builder --${{ matrix.platform }} --x64 -p never | sed 's/identityName=.*$//'
mv latest-mac.yml latest-mac-x64.yml
cp ./files/*pty.node ./node_modules/node-pty/build/Release/pty.node
sed -i '' 's/out\/mac\/Yank Note.app/out\/mac-arm64\/Yank Note.app/' electron-builder.json
yarn run electron-builder --${{ matrix.platform }} --arm64 -p never | sed 's/identityName=.*$//'
mv latest-mac.yml latest-mac-arm64.yml
cat latest-mac-arm64.yml latest-mac-x64.yml | sed '9,13d' > latest-mac.yml
- name: GH Release
uses: softprops/action-gh-release@v0.1.5