mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-03-10 06:53:57 +01:00
Used SteamDeckTools apps
This commit is contained in:
parent
c7206b9325
commit
176ec96814
|
|
@ -96,27 +96,35 @@ namespace Updater
|
|||
}
|
||||
|
||||
AppendArg(UpdatedArg);
|
||||
TrackProcess("FanControl");
|
||||
TrackProcess("PowerControl");
|
||||
TrackProcess("PerformanceOverlay");
|
||||
TrackProcess("SteamController");
|
||||
|
||||
List<string> usedTools = new List<string>();
|
||||
TrackProcess("FanControl", usedTools);
|
||||
TrackProcess("PowerControl", usedTools);
|
||||
TrackProcess("PerformanceOverlay", usedTools);
|
||||
TrackProcess("SteamController", usedTools);
|
||||
|
||||
var updateURL = String.Format(
|
||||
"https://steam-deck-tools.ayufan.dev/docs/updates/{0}_{1}.xml?version={2}&machineID={3}&env={4}",
|
||||
"https://steam-deck-tools.ayufan.dev/docs/updates/{0}_{1}.xml?version={2}&id={3}&env={4}&apps={5}",
|
||||
Instance.IsDEBUG ? "debug" : "release",
|
||||
IsUsingInstaller ? "setup" : "zip",
|
||||
HttpUtility.UrlEncode(Instance.ProductVersionWithSha),
|
||||
HttpUtility.UrlEncode(Instance.ID),
|
||||
Instance.IsProductionBuild ? "prod" : "dev"
|
||||
Instance.IsProductionBuild ? "prod" : "dev",
|
||||
HttpUtility.UrlEncode(String.Join(",", usedTools))
|
||||
);
|
||||
|
||||
AutoUpdater.Start(updateURL);
|
||||
}
|
||||
|
||||
private static void TrackProcess(String processFilerName)
|
||||
private static bool TrackProcess(String processFilterName, List<string>? usedTools = null)
|
||||
{
|
||||
if (FindProcesses(processFilerName).Any())
|
||||
AppendArg(RunPrefix + processFilerName);
|
||||
if (FindProcesses(processFilterName).Any())
|
||||
{
|
||||
AppendArg(RunPrefix + processFilterName);
|
||||
usedTools?.Add(processFilterName);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static void KillApps()
|
||||
|
|
|
|||
|
|
@ -13,10 +13,11 @@ including, but not only:
|
|||
- Exception Stack Trace
|
||||
- Application Version
|
||||
- Type of installation
|
||||
- Unique installation ID
|
||||
- Installation ID
|
||||
|
||||
Additionally for statistic purposes the installation ID and Application Version might
|
||||
be tracked as part of Update process to see active user-base vs version used.
|
||||
Additionally for statistic purposes the installation ID, application version
|
||||
and which SteamDeckTools apps are used might be tracked as part of Update
|
||||
process to see active user-base vs version used.
|
||||
|
||||
The installation ID is one time generated GUID that is persisted on the first start
|
||||
of an application.
|
||||
|
|
|
|||
Loading…
Reference in a new issue