Changing app icon of brandaware codesigned app in Mac OS Ventura Beta

We have an application which is codes signed and distributed out of the App Store and packaged via an installer.

Since the app is brandaware and distributed through different names, the app icon has to be changed corresponding to the brand. But the brand is determined only during installation.

Until now, the installer used to replace the AppIcon.icns file under the code-signed app bundle directory Example.app/Contents/Resources with the appropriate brand icon .icns file.

This has no issues until Mac OS Monterey. But on Ventura Beta, when the app is opened, it pops up and error saying "the app is damaged and can't be opened".

I agree that a code-signed app cannot be modified, but is there any workaround to change the app icon of the code-signed app without modifying its signature?

Changing app icon of brandaware codesigned app in Mac OS Ventura Beta
 
 
Q