uno icon indicating copy to clipboard operation
uno copied to clipboard

Add build/publish/deploy examples

Open Osiris-Team opened this issue 3 years ago • 6 comments
trafficstars

There is no information about this on this repo and basically nothing even on the website's docs. So adding a few scripts to at least build binaries for all platforms at once would be cool? Or does that require running from different platforms?

Publishing certainly requires credentials and maybe even additional software I guess. But some templates with mock data would also be helpful.

Osiris-Team avatar Jul 01 '22 09:07 Osiris-Team

Thanks for the report! We're generally relying on "standard" deployment documentation from Microsoft, as a Uno is based on standard deployment techniques. Still, we're not explicitly referencing those and that can be misleading.

Which target did you want to know about ?

jeromelaban avatar Aug 02 '22 14:08 jeromelaban

All of the targets. Windows, Web/WebAssembly, iOS, macOS, Android, and Linux. Is it possible to build from a single platform, like Windows, to all the other platforms/targets? Are there any scripts to do this somewhere?

Osiris-Team avatar Aug 02 '22 15:08 Osiris-Team

Thanks. There are specifics to each platforms, like for instance building for iOS/macOS/Catalyst requires a Mac. Windows, Android and Wpf/Gtk can be built from Windows. The Gtk head can run on Windows, Linux and macOS.

We do not provide scripts for this, but most of the targets can build using dotnet build. You can view some build scripts from this blog post.

jeromelaban avatar Aug 02 '22 15:08 jeromelaban

Great thanks! Do you maybe also know about github actions for uno?

Osiris-Team avatar Aug 02 '22 15:08 Osiris-Team

We do not have such samples at this time, though most of the tasks from azure devops are straightforward to port to Github Actions.

jeromelaban avatar Aug 04 '22 12:08 jeromelaban

You'll find an example of deployment script on github for WebAssembly here.

jeromelaban avatar Sep 02 '22 18:09 jeromelaban