@@ -6,37 +6,30 @@ tmp_dir="$root_dir/tmp"
66nwjs_dir=" $root_dir /nwjs"
77package_dir=" $root_dir /package.nw"
88
9- # 修复: webview manager
10- # 此bug导致以下功能异常:
11- # 1. 代码依赖分析不可用
12- # 2. 拓展中的“SERVICE MARKET RECOMMENDS”功能不可用
13- echo " fix: webview manager"
14- sed -i ' s#module.exports = createWebviewManager;#module.exports = createWebviewManager,( /** @type {any} */ (window)).createWebviewManager = createWebviewManager;#g' " $package_dir /js/libs/vseditor/webview-resource/main.js"
15-
169echo " replace: wcc,wcsc linux version"
1710source " ${srcdir} /conf/compiler_version"
1811
1912mkdir -p " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} "
2013if [ ! -f " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc" ]; then
21- wget -c " https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION} /wcc" -O " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc.tmp"
14+ wget -c " https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION} /wcc-x86_64 " -O " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc.tmp"
2215 mv " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc.tmp" " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc"
2316 chmod 0755 " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc"
2417fi
2518
2619if [ ! -f " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc" ]; then
27- wget -c " https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION} /wcsc" -O " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc.tmp"
20+ wget -c " https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION} /wcsc-x86_64 " -O " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc.tmp"
2821 mv " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc.tmp" " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc"
2922 chmod 0755 " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc"
3023fi
3124
3225if [ ! -f " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc_module.node" ]; then
33- wget -c " https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION} /wcc_module .node" -O " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc_module.node.tmp"
26+ wget -c " https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION} /wcc-x86_64 .node" -O " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc_module.node.tmp"
3427 mv " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc_module.node.tmp" " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc_module.node"
3528 chmod 0755 " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcc_module.node"
3629fi
3730
3831if [ ! -f " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc_module.node" ]; then
39- wget -c " https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION} /wcsc_module .node" -O " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc_module.node.tmp"
32+ wget -c " https://github.com/msojocs/wx-compiler/releases/download/${WX_COMPILER_VERSION} /wcsc-x86_64 .node" -O " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc_module.node.tmp"
4033 mv " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc_module.node.tmp" " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc_module.node"
4134 chmod 0755 " ${srcdir} /cache/compiler/${WX_COMPILER_VERSION} /wcsc_module.node"
4235fi
@@ -74,6 +67,14 @@ rm "${package_dir}/node_modules/node-float-pigment-css/float-pigment-css-for-nod
7467cp " ${srcdir} /cache/float-pigment-${float_pigment_version} .node" " ${package_dir} /node_modules/node-float-pigment-css/float-pigment-css-for-nodejs.node"
7568cp " ${srcdir} /cache/float-pigment-${float_pigment_version} .node" " ${package_dir} /node_modules/node-float-pigment-css/float-pigment-css-for-nwjs.node"
7669
70+ # websocket找不到
71+ cd " ${package_dir} /js/libs/vseditor/extensions/node_modules/ws/lib"
72+ mv " WebSocket.js" " websocket.js"
73+ mv " Receiver.js" " receiver.js"
74+ mv " Sender.js" " sender.js"
75+ mv " Constants.js" " constants.js"
76+ mv " Validation.js" " validation.js"
77+
7778# 阻止无限启动服务器
7879mv " ${package_dir} /js/core/entrance.js" " ${package_dir} /js/core/entrance.js.bak"
7980cat " ${srcdir} /res/scripts/entrance.js" > " ${package_dir} /js/core/entrance.js"
0 commit comments