From b007ca7cdefb45065e03e9ae64b8d6a597fcda2c Mon Sep 17 00:00:00 2001 From: msojocs Date: Thu, 9 May 2024 16:00:56 +0800 Subject: [PATCH] fix: deepin arch --- .github/workflows/release.yml | 5 ++++- tools/update-electron | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e68d6a1..73379a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 diff --git a/tools/update-electron b/tools/update-electron index c45ce0f..06fb975 100755 --- a/tools/update-electron +++ b/tools/update-electron @@ -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 # 新世界