playcanvas / playcanvas-rest-api-tools

A set of tools to use with the PlayCanvas REST API for common jobs such as downloading a build and archiving a project
MIT License
23 stars 7 forks source link

Failed if have before-engine scripts with extern_files enabled #41

Closed flyingbaba closed 2 years ago

flyingbaba commented 2 years ago

While making a build for the Playable Ad, we've run in a edge-case where we got error if before-engine scripts are in the project.

Here is the config:

"one_page": { 
        "patch_xhr_out": false, 
        "inline_game_scripts": true, 
        "extern_files": { 
            "enabled": true,
            "folder_name": "7da41e18-5760-46d3-b43b-8ae98f17cddd", // UUID GENERATOR
            "external_url_prefix": ""
        },
        "mraid_support": true,
        "snapchat_cta": true,
        "compress_engine": true
    }

Here is the screenshot:

image

flyingbaba commented 2 years ago

P.s.: And this thread might be useful https://forum.playcanvas.com/t/unity-ads-snapchat-playable-ad-and-mraid-usage/27407