Preset fbapp-config.json for cocos creator build

Hey people, when i build my project for facebook instant games using cocos creator it automatically generates this JSON file in the project folder (fbapp-config.json) like so

   {
    "instant_games": {
   "platform_version": "RICH_GAMEPLAY",
   "custom_update_templates": {
         "play_turn": {
              "example": "Edgar played their move"
         }  
   }
 }
}

How do i change this so that every time i build it i don’t have to edit it manually? I want to make a preset file that is used every time i build without having to go in and edit the file after the build is complete.

add a floder in your project dir named “build-templates”,like this:
%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20181129191740

and put your config file in the “fb-instant-games” folder
%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20181129191809

1 Like