Skip to content

Commit c29f28f

Browse files
committed
fix:wcc path
1 parent b2b7881 commit c29f28f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ crash-server
1111
build
1212
*.snap
1313
*.AppImage
14-
appimage-builder-cache
14+
appimage-builder-cache
15+
wcc.bin
16+
wcsc.bin

compiler/nodejs/wcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require("path");
55
const args = process.argv.slice(2);
66
const funcName = args[args.indexOf('-gn') + 1]
77
const debugWXS = args.includes('-ds')
8-
const wccPath = path.resolve(__dirname, '../wcc')
8+
const wccPath = path.resolve(__dirname, './wcc.bin')
99
function genFunctionContent_LLW(wxmlName, config={}, source) {
1010
// 起始
1111
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"

0 commit comments

Comments
 (0)