From 1e4314d3b585b75bfb5cc3f7d126235cba9797be Mon Sep 17 00:00:00 2001 From: msojocs Date: Thu, 9 May 2024 15:39:45 +0800 Subject: [PATCH] fix: prepare --- .github/workflows/release.yml | 9 +++++++-- tools/build-prepare.sh | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 078057f..bf2a30c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,8 +67,8 @@ jobs: ls -l mkdir -p tmp/src mkdir -p tmp/build - tar -zcf tmp/src/bilibili-${{ steps.tag.outputs.tag }}-${{ matrix.ARCH }}.tar.gz bin app # electron - cp tmp/src/bilibili-${{ steps.tag.outputs.tag }}-${{ matrix.ARCH }}.tar.gz tmp/build/bilibili-${{ steps.tag.outputs.tag }}-app.tar.gz + tar -zcf tmp/src/bilibili-asar-${{ steps.tag.outputs.tag }}.tar.gz bin app # electron + cp tmp/src/bilibili-asar-${{ steps.tag.outputs.tag }}.tar.gz tmp/build/bilibili-asar-${{ steps.tag.outputs.tag }}.tar.gz tar -zcf tmp/build/extensions-${{ steps.tag.outputs.tag }}.tar.gz extensions - name: Upload artifact @@ -109,10 +109,13 @@ jobs: uses: actions/setup-node@v2 - name: Prepare + env: + BUILD_ARCH: ${{ matrix.ARCH }} run: | sudo apt install wget exiftool sudo npm install asar -g echo "$UID, $GID" + tools/build-prepare.sh - name: Generate TAG id: Tag @@ -191,6 +194,7 @@ jobs: env: BUILD_VERSION: ${{ steps.tag.outputs.tag }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BUILD_ARCH: ${{ matrix.ARCH }} run: | ls -l mkdir -p tmp/build @@ -274,6 +278,7 @@ jobs: env: BUILD_VERSION: ${{ steps.tag.outputs.tag }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BUILD_ARCH: ${{ matrix.ARCH }} run: | ls -l mkdir -p tmp/build diff --git a/tools/build-prepare.sh b/tools/build-prepare.sh index 365a9d3..6853bc3 100755 --- a/tools/build-prepare.sh +++ b/tools/build-prepare.sh @@ -30,5 +30,5 @@ tmp_dir="$root_dir/tmp" store_dir="$tmp_dir/build" mkdir -p $store_dir rm -rf app electron -tar -zxf "bilibili-${BUILD_ARCH}.src/bilibili-${BUILD_ARCH}.tar.gz" -C . +tar -zxf "bilibili-app.src/bilibili-asar-*.tar.gz" -C . \ No newline at end of file