Skip to content

Commit

Permalink
update: bilibili to v1.10.1.2297
Browse files Browse the repository at this point in the history
update: electron to v21.3.3
  • Loading branch information
msojocs committed May 10, 2023
1 parent 5a92e60 commit 363d1ef
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v1.10.1-1 / 2023-05-10

- update: electron to v21.3.3
- update: bilibili to v1.10.1.2297

# v1.9.2-1 / 2023-03-25

- update: bilibili to v1.9.2.2092
Expand Down
8 changes: 7 additions & 1 deletion bin/bilibili
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ done
root_dir="$( cd -P "$( dirname "$SOURCE" )"/.. >/dev/null 2>&1 && pwd )"
# 启用检查更新 for electron-updater
export APPIMAGE=1
ELECTRON_FORCE_IS_PACKAGED=true "$root_dir/electron/electron" "$root_dir/app/app.asar" --no-sandbox "$@"

DEBUG=1
if [ DEBUG == 1 ]; then
ELECTRON_FORCE_IS_PACKAGED=true "$root_dir/electron/electron" "$root_dir/tmp/bili/resources/app" --no-sandbox "$@"
else
ELECTRON_FORCE_IS_PACKAGED=true "$root_dir/electron/electron" "$root_dir/app/app.asar" --no-sandbox "$@"
fi
2 changes: 1 addition & 1 deletion conf/bilibili_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.2.2092
1.10.1.2297
16 changes: 8 additions & 8 deletions tools/fix-other.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ mv "app/main/temp.js" "app/main/index.js"
notice "====app.js===="

notice "屏蔽检测"
grep -lr 'if(!qI' --exclude="app.asar" .
sed -i 's#if(!qI#if(false\&\&!qI#g' app/main/app.js
grep -lr 'if(!Dn' --exclude="app.asar" .
sed -i 's#if(!Dn#if(false\&\&!Dn#g' app/main/app.js
# ==='win';if(!
grep -lr 'if(!ao)' --exclude="app.asar" .
sed -i 's#if(!ao)#if(false\&\&!ao)#' app/main/app.js
grep -lr 'if(!x5)' --exclude="app.asar" .
sed -i 's#if(!x5)#if(false\&\&!x5)#' app/main/app.js
# global['bootstrapApp']();
grep -lr 'if(qI)' --exclude="app.asar" .
sed -i 's#if(qI)#if(!qI)#' app/main/app.js
grep -lr ';}!qI' --exclude="app.asar" .
sed -i 's#;}!qI#;}false\&\&!qI#' app/main/app.js
grep -lr 'if(Dn)' --exclude="app.asar" .
sed -i 's#if(Dn)#if(!Dn)#' app/main/app.js
grep -lr ';}!Dn' --exclude="app.asar" .
sed -i 's#;}!Dn#;}false\&\&!Dn#' app/main/app.js

notice "路由"
grep -lr 'case"SettingsPage":n.push({name:"Settings"});return' --exclude="app.asar" .
Expand Down
11 changes: 9 additions & 2 deletions tools/js-decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ resultCode = resultCode.replace(
// 二分法查找异常点
// 763 ok
// 764 error
if(i === 11798){
// if(i === 11798){
if(i === 3311){
// if(i === 3312){
// console.log("--->", $0, $1, $2)
// let result = eval('"' + $1 + '"')
// console.log("--->", result)
Expand Down Expand Up @@ -100,5 +100,12 @@ resultCode = encodeUnicode(resultCode)
resultCode = parseSubFunc(resultCode)
resultCode = parseSubFunc(resultCode)
resultCode = resultCode.replace(/'\+'/g, '')
i = 0;
resultCode = resultCode.replace(
//g,
function ($0, $1, $2) {
return $0 + i++
}
)
fs.writeFileSync(dist, resultCode)
// fs.writeFileSync(path.resolve(__dirname, '../'), resultCode)
2 changes: 1 addition & 1 deletion tools/update-electron
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ notice() {
echo -e "\033[36m $1 \033[0m "
}

electron_version="17.4.11"
electron_version="21.3.3"
download_url="https://npmmirror.com/mirrors/electron/${electron_version}/electron-v${electron_version}-linux-x64.zip"
if [ "$BUILD_ARCH" == "arm64" ];then
download_url=$(echo "${download_url}" | sed "s/x64/${BUILD_ARCH}/")
Expand Down

0 comments on commit 363d1ef

Please sign in to comment.