File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Example/harmony_use_pushy/harmony/entry
src/main/resources/rawfile Expand file tree Collapse file tree 2 files changed +4
-4
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 }
@@ -41,4 +41,4 @@ export function generatePushyBuildTime(str?: string) {
4141export default {
4242 system : hapTasks , /* Built-in plugin of Hvigor. It cannot be modified. */
4343 plugins :[ generatePushyBuildTime ( ) ] /* Custom plugin to extend the functionality of Hvigor. */
44- }
44+ }
Original file line number Diff line number Diff line change 11{
2- "pushy_build_time" : " 2025-02-14T01:53:04.560Z " ,
2+ "pushy_build_time" : " 2025-02-14T09:43:25.648Z " ,
33 "versionName" : " 1.0.0"
44}
You can’t perform that action at this time.
0 commit comments