Add silnite support (fix #701) (#714)

This commit is contained in:
Roey Darwish Dror
2021-05-29 07:54:15 +03:00
committed by GitHub
parent 4a4e249f5f
commit cdc7c39d02
3 changed files with 11 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ pub enum Step {
Rustup, Rustup,
Scoop, Scoop,
Sdkman, Sdkman,
Silnite,
Sheldon, Sheldon,
Shell, Shell,
Snap, Snap,

View File

@@ -313,6 +313,9 @@ fn run() -> Result<()> {
runner.execute(Step::Snap, "snap", || linux::run_snap(sudo.as_ref(), run_type))?; runner.execute(Step::Snap, "snap", || linux::run_snap(sudo.as_ref(), run_type))?;
} }
#[cfg(target_os = "macos")]
runner.execute(Step::Silnite, "silnite", || macos::run_silnite(&ctx))?;
if let Some(commands) = config.commands() { if let Some(commands) = config.commands() {
for (name, command) in commands { for (name, command) in commands {
runner.execute(Step::CustomCommands, name, || { runner.execute(Step::CustomCommands, name, || {

View File

@@ -32,6 +32,13 @@ pub fn run_mas(run_type: RunType) -> Result<()> {
run_type.execute(mas).arg("upgrade").check_run() run_type.execute(mas).arg("upgrade").check_run()
} }
pub fn run_silnite(ctx: &ExecutionContext) -> Result<()> {
let silnite = require("silnite")?;
print_separator("Silnite");
ctx.run_type().execute(silnite).arg("au").check_run()
}
pub fn upgrade_macos(ctx: &ExecutionContext) -> Result<()> { pub fn upgrade_macos(ctx: &ExecutionContext) -> Result<()> {
print_separator("macOS system update"); print_separator("macOS system update");