From 87b452c4dcc69c49f495d71eec3ad9de01416b3d Mon Sep 17 00:00:00 2001 From: ali Date: Thu, 10 Sep 2026 09:09:32 +0800 Subject: [PATCH] chore: rename bundle to com.hraulein.haven + debug signing config --- AppScope/app.json5 | 2 +- build-profile.json5 | 78 +++++++++++-------- .../main/ets/common/BackgroundKeepAlive.ts | 2 +- 3 files changed, 48 insertions(+), 34 deletions(-) diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 8c6d488..5eb08b6 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -1,6 +1,6 @@ { "app": { - "bundleName": "sh.haven.harmony", + "bundleName": "com.hraulein.haven", "vendor": "HavenOH", "versionCode": 10000, "versionName": "0.1.0", diff --git a/build-profile.json5 b/build-profile.json5 index 3bbd8a6..755430c 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -1,42 +1,56 @@ { - "app": { - "signingConfigs": [], - "products": [ + app: { + signingConfigs: [ { - "name": "default", - "signingConfig": "default", - "targetSdkVersion": "26.0.0", - "compatibleSdkVersion": "26.0.0", - "runtimeOS": "HarmonyOS", - "buildOption": { - "strictMode": { - "caseSensitiveCheck": true, - "useNormalizedOHMUrl": true - } - } - } + name: 'default', + type: 'HarmonyOS', + material: { + certpath: 'C:\\Users\\Ali\\.ohos\\config\\default_Haven_fk0qwC6xQhq03hIxCmLnyUCZsuphbnJ7qVPoAe28=.cer', + keyAlias: 'debugKey', + keyPassword: '000000195a38045b7bce9691b4bfa788d5d867b719804ede53485e3c02917aac5c81ba50b364f5f5a7', + profile: 'C:\\Users\\Ali\\.ohos\\config\\default_Haven_fk0qwC6xQhq03hIxCmLnyUCZsuphbnJ7qVPoAe28=.p7b', + signAlg: 'SHA256withECDSA', + storeFile: 'C:\\Users\\Ali\\.ohos\\config\\default_Haven_fk0qwC6xQhq03hIxCmLnyUCZsuphbnJ7qVPoAe28=.p12', + storePassword: '000000195a38045b7bce9691b4bfa788d5d867b719804ede53485e3c02917aac5c81ba50b364f5f5a7', + }, + }, ], - "buildModeSet": [ + products: [ { - "name": "debug", + name: 'default', + signingConfig: 'default', + targetSdkVersion: '26.0.0', + compatibleSdkVersion: '26.0.0', + runtimeOS: 'HarmonyOS', + buildOption: { + strictMode: { + caseSensitiveCheck: true, + useNormalizedOHMUrl: true, + }, + }, + }, + ], + buildModeSet: [ + { + name: 'debug', }, { - "name": "release" - } - ] + name: 'release', + }, + ], }, - "modules": [ + modules: [ { - "name": "entry", - "srcPath": "./entry", - "targets": [ + name: 'entry', + srcPath: './entry', + targets: [ { - "name": "default", - "applyToProducts": [ - "default" - ] - } - ] - } - ] + name: 'default', + applyToProducts: [ + 'default', + ], + }, + ], + }, + ], } \ No newline at end of file diff --git a/entry/src/main/ets/common/BackgroundKeepAlive.ts b/entry/src/main/ets/common/BackgroundKeepAlive.ts index 17873b4..015a45e 100644 --- a/entry/src/main/ets/common/BackgroundKeepAlive.ts +++ b/entry/src/main/ets/common/BackgroundKeepAlive.ts @@ -13,7 +13,7 @@ import { common, wantAgent } from '@kit.AbilityKit'; import type { WantAgent } from '@kit.AbilityKit'; import { Log } from './Log'; -const BUNDLE_NAME: string = 'sh.haven.harmony'; +const BUNDLE_NAME: string = 'com.hraulein.haven'; export class BackgroundKeepAlive { private static readonly TAG: string = 'BackgroundKeepAlive';