From c29f28ffd659508223ec0f49fd0ac905f7921736 Mon Sep 17 00:00:00 2001 From: msojocs Date: Thu, 24 Feb 2022 12:50:02 +0800 Subject: [PATCH] fix:wcc path --- .gitignore | 4 +++- compiler/nodejs/wcc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c467baa..225bbab 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,6 @@ crash-server build *.snap *.AppImage -appimage-builder-cache \ No newline at end of file +appimage-builder-cache +wcc.bin +wcsc.bin \ No newline at end of file diff --git a/compiler/nodejs/wcc b/compiler/nodejs/wcc index 74a5d5f..72dca2e 100644 --- a/compiler/nodejs/wcc +++ b/compiler/nodejs/wcc @@ -5,7 +5,7 @@ const path = require("path"); const args = process.argv.slice(2); const funcName = args[args.indexOf('-gn') + 1] const debugWXS = args.includes('-ds') -const wccPath = path.resolve(__dirname, '../wcc') +const wccPath = path.resolve(__dirname, './wcc.bin') function genFunctionContent_LLW(wxmlName, config={}, source) { // 起始 let content = `var cs = cs || [];\u000a${config.funcName}` + "=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){\u000aif(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};\u000a}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};\u000a"