Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Nov 7, 2024
1 parent 155cb10 commit 758e2e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,29 +253,15 @@ jobs:
name: bilibili-app.src
path: tmp/src

- uses: actions/setup-node@v4
with:
node-version: 20
- name: Prepare
run: |
set -x
echo $SHELL
cat /etc/issue
apt update
apt install -y curl
touch ~/.bashrc
touch ~/.zshrc
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# download and install Node.js (you may need to restart the terminal)
nvm install 22
# verifies the right Node.js version is in the environment
node -v # should print `v22.11.0`
# verifies the right npm version is in the environment
npm -v # should print `10.9.0`
npm install asar -g
npm install
echo "$UID"
Expand All @@ -299,12 +285,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_ARCH: ${{ matrix.ARCH }}
run: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
ls -l
chmod 777 /github/home
# from @Xarth-Mai
sudo chown -R $(whoami) /github/home
mkdir -p tmp/build
tools/build-prepare.sh
asar e app/app.asar app/app
Expand Down
2 changes: 1 addition & 1 deletion conf/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"extensions",
"app/app-update.yml"
],
"electronVersion": "21.3.3",
"electronVersion": "33.0.2",
"appId": "com.bilibili.app",
"mac": {
"target": [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
"@grpc/grpc-js": "^1.10.9",
"@grpc/proto-loader": "^0.7.13",
"protobufjs": "^7.3.2"
}
},
"packageManager": "[email protected]+sha1.aa961ffce9b6eaa56307d9b5ff7e984f25b7eb58"
}

0 comments on commit 758e2e6

Please sign in to comment.