mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	adapter for harmony (#464)
* update hvigorfile.ts file * change versionName get logic * change post logic for harmony
This commit is contained in:
		| @@ -14,11 +14,11 @@ export function generatePushyBuildTime(str?: string) { | ||||
|                     if (!fs.existsSync(dirPath)) { | ||||
|                         fs.mkdirSync(dirPath, { recursive: true }); | ||||
|                     } | ||||
|                     const moduleJsonPath = path.resolve(__dirname, './oh-package.json5'); | ||||
|                     const moduleJsonPath = path.resolve(__dirname, '../AppScope/app.json5'); | ||||
|                     let versionName = ''; | ||||
|                     if (fs.existsSync(moduleJsonPath)) { | ||||
|                         const moduleContent = fs.readFileSync(moduleJsonPath, 'utf-8'); | ||||
|                         const versionMatch = moduleContent.match(/"version":\s*"([^"]+)"/); | ||||
|                         const versionMatch = moduleContent.match(/"versionName":\s*"([^"]+)"/); | ||||
|                         if (versionMatch && versionMatch[1]) { | ||||
|                             versionName = versionMatch[1]; | ||||
|                         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 波仔糕
					波仔糕