Skip to main content

euv_cli/bundle/
enum.rs

1use super::*;
2
3/// A native platform the euv CLI can build a client for.
4///
5/// Every variant names one deliverable the native builders in
6/// `native/tauri` produce, and every variant declares the hosts it can be
7/// built on so an incompatible request fails before any heavy work
8/// starts.
9#[derive(Clone, Copy, Debug, Eq, PartialEq, ValueEnum)]
10pub enum NativePlatform {
11    /// The macOS desktop application bundle and disk image.
12    Macos,
13    /// The Linux desktop application packages.
14    Linux,
15    /// The Windows desktop application packages.
16    Windows,
17    /// The iOS device application archive.
18    Ios,
19    /// The iOS simulator application bundle.
20    IosSimulator,
21    /// The Android application package.
22    Android,
23}
24
25/// The host operating systems the native builders support.
26#[derive(Clone, Copy, Debug, Eq, PartialEq)]
27pub enum HostOs {
28    /// A macOS host, which builds the Apple and Android deliverables.
29    Macos,
30    /// A Linux host, which builds the Linux and Android deliverables.
31    Linux,
32    /// A Windows host, which builds the Windows deliverable.
33    Windows,
34    /// A host with no supported native packaging toolchain.
35    Unsupported,
36}
37
38/// The kind of work a native platform needs from the native builders.
39#[derive(Clone, Copy, Debug, Eq, PartialEq)]
40pub enum NativeTask {
41    /// The platform is built by the Android build script.
42    Android,
43    /// The platform is built by the per-platform client builder.
44    Client,
45}