Fix desktop build
Most of this PR is reverting changes to how things used to be done. Not a perfect setup but it does not instantly crash anymore. Update CI to build and check format of the desktop packages.
Most of this PR is reverting changes to how things used to be done. Not a perfect setup but it does not instantly crash anymore. Update CI to build and check format of the desktop packages.