Skip to content

Commit

Permalink
update: bilibili to v1.15.2.3770
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Nov 6, 2024
1 parent bc8b174 commit ccd7ac6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 🌈 v1.15.2-1 / 2024-11-

## 🚀 功能

- bilibili: update to v1.15.2.3770
- electron: update to v33.0.2

# 🌈 v1.14.2-1 / 2024-09-22

## 🚀 功能
Expand Down
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ https://github.com/msojocs/bilibili-linux/releases/tag/continuous

### 额外补充

如果阁下不喜欢电脑多装一个 Electron,可以自行提取发布版的 `app.asar` 并使用已安装 Electron 启动,建议的 Electron 版本是:`21.3.3`
如果阁下不喜欢电脑多装一个 Electron,可以自行提取发布版的 `app.asar` 并使用已安装 Electron 启动,建议的 Electron 版本是:`33.0.2`

## Flag参数配置

Expand Down
2 changes: 1 addition & 1 deletion conf/bilibili_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14.2.3575
1.15.2.3770
15 changes: 8 additions & 7 deletions tools/fix-other.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ cat "$root_dir/res/scripts/injectIndex.js" > "app/index.js"
notice "====app.js===="

notice "屏蔽检测"
grep -lr 'if (!dj' --exclude="app.asar" .
sed -i 's#if (!dj#if(false\&\&!dj#g' "app/main/app.js"
# ==='win';if(! 警告9
grep -lr 'if (!iI)' --exclude="app.asar" .
sed -i 's#if (!iI)#if(false\&\&!iI)#' "app/main/app.js"
# grep -lr 'if (!dj' --exclude="app.asar" .
# sed -i 's#if (!dj#if(false\&\&!dj#g' "app/main/app.js"
# ==='win';if(! 警告11
grep -lr 'if (!iG)' --exclude="app.asar" .
sed -i 's#if (!iG)#if(false\&\&!iG)#' "app/main/app.js"
# global['bootstrapApp']();
grep -lr 'if (dj)' --exclude="app.asar" .
sed -i 's#if (dj)#if(!dj)#' "app/main/app.js"
# grep -lr 'if (dj)' --exclude="app.asar" .
# sed -i 's#if (dj)#if(!dj)#' "app/main/app.js"
#grep -lr '};!fb' --exclude="app.asar" .
#sed -i 's#};!fb#};false\&\&!fb#' "app/main/app.js"
echo "global.bootstrapApp();" >> "app/main/app.js"

notice "路由"
cat "$root_dir/res/scripts/inject-biliapp.js" >> app/render/assets/biliapp.*.js
Expand Down
3 changes: 2 additions & 1 deletion tools/update-electron
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ notice() {
echo -e "\033[36m $1 \033[0m "
}

electron_version="21.3.3"
electron_version="33.0.2"
if [ "$BUILD_ARCH" == "" ];then
BUILD_ARCH="x64"
elif [ "$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"
download_url="https://github.com/electron/electron/releases/download/v${electron_version}/electron-v${electron_version}-linux-x64.zip"
if [ "$BUILD_ARCH" == "loong64" ];then
# 新世界
electron_version="22.3.27"
Expand Down

0 comments on commit ccd7ac6

Please sign in to comment.