Yes, it should work for choco new
, choco pack
, and choco push
, running on mono.
[Wayback/Archive.is] https://github.com/chocolatey/choco/runs/3660684196?check_suite_focus=true
…
There is also a dockerfile
available here:
[Wayback/Archive.is] https://github.com/chocolatey/choco/tree/develop/docker
However, as @AdmiringWorm said, there are not any official builds or official support at this time.
…
In my own private fork of choco however I’m using such interfaces as RestartManager
[DllImport("rstrtmgr.dll", SetLastError = true, CharSet = CharSet.Auto)]
static extern int RmStartSession(out uint pSessionHandle,
int dwSessionFlags,
string strSessionKey);
[DllImport("rstrtmgr.dll", SetLastError = true)]
static extern int RmEndSession(uint pSessionHandle);
[DllImport("rstrtmgr.dll", SetLastError = true)]
static extern int RmGetList(uint dwSessionHandle,
out uint pnProcInfoNeeded,
ref uint pnProcInfo,
[In, Out] ProcessInfo[] rgAffectedApps,
ref uint lpdwRebootReasons);
those will be windows specific indeed, but I’ll reach them later on.