Skip to content

Commit

Permalink
fix: prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed May 9, 2024
1 parent 5b19dcd commit 1e4314d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/build-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit 1e4314d

Please sign in to comment.