Skip to content

Commit

Permalink
fix: deepin arch
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed May 9, 2024
1 parent 293d5c8 commit b007ca7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ jobs:

strategy:
matrix:
ARCH: ['amd64', 'arm64']
ARCH: ['x64', 'arm64']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down Expand Up @@ -349,6 +349,9 @@ jobs:
export LD_LIBRARY_PATH="/usr/aarch64-linux-gnu/lib"
fi
tools/update-electron
if [ "$BUILD_ARCH" == "x64" ];then
export BUILD_ARCH="amd64"
fi
tools/build-deepin.sh ${{ steps.tag.outputs.tag }}
- name: Upload artifact
Expand Down
3 changes: 3 additions & 0 deletions tools/update-electron
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ notice() {
}

electron_version="21.3.3"
if [ "$BUILD_ARCH" == "amd64" ];then
BUILD_ARCH="x64"
fi
download_url="https://npmmirror.com/mirrors/electron/${electron_version}/electron-v${electron_version}-linux-${BUILD_ARCH}.zip"
if [ "$BUILD_ARCH" == "loong64" ];then
# 新世界
Expand Down

0 comments on commit b007ca7

Please sign in to comment.