@@ -43,9 +43,11 @@ export interface runtimeArgs {
43
43
uniVueVersion : string ;
44
44
}
45
45
export class UniappRuntimeArgs {
46
- private _isWindows : boolean ;
46
+ // private _isWindows: boolean;
47
+ private _isMacOs :boolean ;
47
48
constructor ( public args : runtimeArgs , public config : UnappRunConfig ) {
48
- this . _isWindows = process . platform === "win32" ;
49
+ // this._isWindows = process.platform === "win32";
50
+ this . _isMacOs = process . platform === "darwin" ;
49
51
}
50
52
51
53
/**
@@ -117,7 +119,7 @@ export class UniappRuntimeArgs {
117
119
*/
118
120
get cwd ( ) : string {
119
121
let paths : string [ ] = [ "plugins" ] ;
120
- if ( ! this . _isWindows ) {
122
+ if ( this . _isMacOs ) {
121
123
paths = [ "Contents" , "HBuilderX" , ...paths ] ;
122
124
}
123
125
if ( this . uniVueVersion === "v3" ) {
@@ -134,7 +136,7 @@ export class UniappRuntimeArgs {
134
136
*/
135
137
get nodePath ( ) : string {
136
138
let paths : string [ ] = [ "plugins" , "node" , "node" ] ;
137
- if ( ! this . _isWindows ) {
139
+ if ( this . _isMacOs ) {
138
140
paths = [ "Contents" , "HBuilderX" , ...paths ] ;
139
141
}
140
142
return path . join ( this . config . HBuilderPath , ...paths ) ;
@@ -146,7 +148,7 @@ export class UniappRuntimeArgs {
146
148
*/
147
149
get nodeJsPath ( ) : string {
148
150
let paths : string [ ] = [ "plugins" ] ;
149
- if ( ! this . _isWindows ) {
151
+ if ( this . _isMacOs ) {
150
152
paths = [ "Contents" , "HBuilderX" , ...paths ] ;
151
153
}
152
154
if ( this . uniVueVersion === "v3" ) {
0 commit comments