File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed 
Example/harmony_use_pushy/harmony/entry Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ export function generatePushyBuildTime(str?: string) {
1414                    if  ( ! fs . existsSync ( dirPath ) )  { 
1515                        fs . mkdirSync ( dirPath ,  {  recursive : true  } ) ; 
1616                    } 
17-                     const  moduleJsonPath  =  path . resolve ( __dirname ,  './oh-package .json5' ) ; 
17+                     const  moduleJsonPath  =  path . resolve ( __dirname ,  '../AppScope/app .json5' ) ; 
1818                    let  versionName  =  '' ; 
1919                    if  ( fs . existsSync ( moduleJsonPath ) )  { 
2020                        const  moduleContent  =  fs . readFileSync ( moduleJsonPath ,  'utf-8' ) ; 
21-                         const  versionMatch  =  moduleContent . match ( / " v e r s i o n " : \s * " ( [ ^ " ] + ) " / ) ; 
21+                         const  versionMatch  =  moduleContent . match ( / " v e r s i o n N a m e " : \s * " ( [ ^ " ] + ) " / ) ; 
2222                        if  ( versionMatch  &&  versionMatch [ 1 ] )  { 
2323                            versionName  =  versionMatch [ 1 ] ; 
2424                        } 
Original file line number Diff line number Diff line change @@ -205,7 +205,10 @@ export class Pushy {
205205      // @ts -ignore 
206206      delete  fetchBody . buildTime ; 
207207    } 
208-     const  body  =  JSON . stringify ( fetchBody ) ; 
208+     let  body  =  JSON . stringify ( fetchBody ) ; 
209+     if  ( Platform . OS  ===  'harmony' )  { 
210+       body  =  fetchBody ; 
211+     } 
209212    const  fetchPayload  =  { 
210213      method : 'POST' , 
211214      headers : { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments