Skip to content

Commit 6ed016c

Browse files
committed
udpapte
1 parent f20e088 commit 6ed016c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Example/harmony_use_pushy/harmony/entry/hvigorfile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(/"version":\s*"([^"]+)"/);
21+
const versionMatch = moduleContent.match(/"versionName":\s*"([^"]+)"/);
2222
if (versionMatch && versionMatch[1]) {
2323
versionName = versionMatch[1];
2424
}
@@ -41,4 +41,4 @@ export function generatePushyBuildTime(str?: string) {
4141
export 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+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
}

0 commit comments

Comments
 (0)