If you are working with Cordova, it's a good practice to place your build files in the dist folder just like you normally would. Here is a simple guide on how to set up your Cordova project:
Start by Installing Cordova and initializing it in your project:
cordova create mobile com.example.myapp
cd mobile
Next, let's add the Android platform:
cordova platform add android
This will create a mobile folder with your Cordova project inside it. Now, create a symbolic link from your project's build files to the Cordova web root.
cd ..
rm -rf mobile/www/*
ln -s $(pwd)/dist/* $(pwd)/mobile/www
For Electron projects, you can refer to the configuration files of SimulatedGREG/electron-vue for guidance. While I'm not as familiar with Electron setups, it should be possible to achieve something similar to what we did with Cordova.