committed by
GitHub
parent
4a4e249f5f
commit
cdc7c39d02
@@ -104,6 +104,7 @@ pub enum Step {
|
|||||||
Rustup,
|
Rustup,
|
||||||
Scoop,
|
Scoop,
|
||||||
Sdkman,
|
Sdkman,
|
||||||
|
Silnite,
|
||||||
Sheldon,
|
Sheldon,
|
||||||
Shell,
|
Shell,
|
||||||
Snap,
|
Snap,
|
||||||
|
|||||||
@@ -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, || {
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user