feat: 修改documentstart

This commit is contained in:
msojocs 2025-04-30 11:51:13 +08:00
parent 489a1f4e86
commit 35e6c94a8f
3 changed files with 9 additions and 11 deletions

View File

@ -74,16 +74,6 @@ rm "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nod
cp "${srcdir}/cache/float-pigment-${float_pigment_version}.node" "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nodejs.node"
cp "${srcdir}/cache/float-pigment-${float_pigment_version}.node" "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nwjs.node"
# Skyline解析插件修复
float_pigment_version="v1.0.0"
# if [ ! -f "${srcdir}/cache/float-pigment-${float_pigment_version}.node" ];then
# wget -c "https://github.com/msojocs/float-pigment-rust/releases/download/${float_pigment_version}/float-pigment-${float_pigment_version}.node" -O "float-pigment-${float_pigment_version}.node.tmp"
# mv "${srcdir}/cache/float-pigment-${float_pigment_version}.node.tmp" "${srcdir}/cache/float-pigment-${float_pigment_version}.node"
# fi
# rm "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nodejs.node" "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nwjs.node"
# cp "${srcdir}/cache/float-pigment-${float_pigment_version}.node" "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nodejs.node"
# cp "${srcdir}/cache/float-pigment-${float_pigment_version}.node" "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nwjs.node"
# 阻止无限启动服务器
mv "${package_dir}/js/core/entrance.js" "${package_dir}/js/core/entrance.js.bak"
cat "${srcdir}/res/scripts/entrance.js" > "${package_dir}/js/core/entrance.js"

View File

@ -19,3 +19,8 @@ rm build/skyline.node
wget -c https://github.com/msojocs/skyline-client-server/releases/download/$skyline_version/skyline-skylineClient-linux-x86_64-$skyline_version.node -Obuild/skyline.node
rm build/icudtl.dat
rm -rf bundle
mv ${package_dir}/js/extensions/inject/documentstart/index.js ${package_dir}/js/extensions/inject/documentstart/index.js.bak
cp ${srcdir}/res/scripts/document_start.js ${package_dir}/js/extensions/inject/documentstart/index.js
cat ${package_dir}/js/extensions/inject/documentstart/index.js.bak >> ${package_dir}/js/extensions/inject/documentstart/index.js
rm ${package_dir}/js/extensions/inject/documentstart/index.js.bak

View File

@ -162,6 +162,9 @@ if [ $CURRENT_STEP == $INSTALL_REBUILD_SUCCESS ];then
notice "Patching Other"
"$root_dir/tools/fix-other.sh"
notice "Replace Skyline"
"$root_dir/tools/replace-skyline.sh"
fi
success "微信开发者工具安装完毕"