Skip to content

Commit

Permalink
fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Dec 3, 2024
1 parent 018a338 commit b0fa7c3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion bin/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ pub mod dev;
pub mod launch;
pub mod localization;
pub mod new;
pub mod photoshoot;
pub mod release;
pub mod script;
pub mod utils;
pub mod value;
pub mod wiki;

#[cfg(windows)]
pub mod photoshoot;

/// Adds modules that should apply to:
/// - hemtt check
/// - hemtt dev
Expand Down
3 changes: 2 additions & 1 deletion bin/src/commands/photoshoot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ pub fn execute(cmd: &Command) -> Result<Report, Error> {
if !dialoguer::Confirm::new()
.with_prompt("This feature is experimental, are you sure you want to continue?")
.interact()
.unwrap() {
.unwrap()
{
return Ok(Report::new());
}

Expand Down
1 change: 0 additions & 1 deletion bin/src/controller/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use rust_embed::RustEmbed;

use crate::{context::Context, error::Error};

#[cfg(windows)]
#[derive(RustEmbed)]
#[folder = "dist/profile"]
struct Distributables;
Expand Down
6 changes: 4 additions & 2 deletions bin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ enum Commands {
#[clap(alias = "ln")]
Localization(commands::localization::Command),
Script(commands::script::Command),
Photoshoot(commands::photoshoot::Command),
Utils(commands::utils::Command),
Value(commands::value::Command),
Wiki(commands::wiki::Command),
#[cfg(windows)]
Photoshoot(commands::photoshoot::Command),
}

/// Run the HEMTT CLI
Expand Down Expand Up @@ -150,10 +151,11 @@ pub fn execute(cli: &Cli) -> Result<(), Error> {
Commands::Release(ref cmd) => commands::release::execute(cmd),
Commands::Localization(ref cmd) => commands::localization::execute(cmd),
Commands::Script(ref cmd) => commands::script::execute(cmd),
Commands::Photoshoot(ref cmd) => commands::photoshoot::execute(cmd),
Commands::Utils(ref cmd) => commands::utils::execute(cmd),
Commands::Value(ref cmd) => commands::value::execute(cmd),
Commands::Wiki(ref cmd) => commands::wiki::execute(cmd),
#[cfg(windows)]
Commands::Photoshoot(ref cmd) => commands::photoshoot::execute(cmd),
};

match report {
Expand Down

0 comments on commit b0fa7c3

Please sign in to comment.