Skip to content

Commit

Permalink
add macos scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
volllly committed Feb 13, 2024
1 parent 19c5875 commit 1149d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines/templates/stages/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ stages:
osx-x64:
vmImage: macos-11
target: osx-x64
scriptFolder: 'linux'
scriptFolder: 'macos'

pool:
vmImage: $(vmImage)
Expand Down
3 changes: 2 additions & 1 deletion src/fiskaltrust.Launcher/Commands/InstallCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static async Task<int> HandleAsync(CommonOptions commonOptions, CommonPro
}.Concat(installServices.SubArguments.Args));

ServiceInstaller? installer = null;

if (OperatingSystem.IsLinux())
{
installer = new LinuxSystemD(installOptions.ServiceName ?? $"fiskaltrust-{commonProperties.LauncherConfiguration.CashboxId}", installServices.LauncherExecutablePath);
Expand All @@ -73,7 +74,7 @@ public static async Task<int> HandleAsync(CommonOptions commonOptions, CommonPro
return await installer.InstallService(commandArgs, installOptions.ServiceDisplayName, installOptions.DelayedStart).ConfigureAwait(false);
}

Log.Error("For non windows or linux(systemd) service installation see: {link}", ""); // TODO
Log.Error("The launcher can only install itsself as a sevice on windows and linux(systemd). On other OSs it has to be done manually. See: {link}", ""); // TODO
return 1;
}
}
Expand Down

0 comments on commit 1149d26

Please sign in to comment.