Improve logic to build the desktop version
Only compile the desktop version when all the components required are present. Don't use the almost-deprecated backend.