minor improvements to auth

This commit is contained in:
2026-01-09 15:40:27 +02:00
parent defb60ac53
commit 5ff4521228
7 changed files with 227 additions and 68 deletions

View File

@@ -67,6 +67,7 @@ public:
virtual CUtlString BuildPackage( AppleManifest_t manifest, CUtlString szManifestDir ) override;
virtual CUtlString SignPackage( const char *szIpa, const char *szPassword ) override;
};
CUtlString CAppleTool::BuildPackage( AppleManifest_t manifest, CUtlString szManifestDir )
{
CUtlVector<CUtlString> args = {};
@@ -86,9 +87,13 @@ CUtlString CAppleTool::SignPackage( const char *szIpa, const char *szPassword )
CreateInterfaceFn fnFactory = Sys_GetFactory("appleauth");
if (fnFactory == NULL)
Plat_FatalErrorFunc("Couldn't get xtool\n");
g_pAppleAuth = (IAppleAuth*)fnFactory(APPLE_AUTH_INTERFACE_VERSION, NULL);
g_pAppleAuth->Init();
g_pAppleAuth->SubmitLoginData("bratelllo@icloud.com", "");
char *szGSAEmail = CommandLine()->ParamValue("-apple-login");
char *szGSAPassword = CommandLine()->ParamValue("-apple-password");
if (szGSAEmail && szGSAPassword)
g_pAppleAuth->SubmitLoginData(szGSAEmail, szGSAPassword);
return szIpa;
}