One way of doing this is to build using the command line tool and change your project dependencies depending on which platform/portal you are building for.
You can have project setting "stub" files, like this:
[project]
dependencies#0 = https://github.com/defold/extension-poki-sdk/archive/refs/tags/1.4.3.zip