This commit is contained in:
2026-01-05 14:34:34 +02:00
parent f886350eb1
commit 2b91057589
8 changed files with 111 additions and 61 deletions

View File

@@ -1,6 +1,7 @@
#include "appletool.h"
#include "helper.h"
#include "runner.h"
#include "appleauth/iauth.h"
void AppleManifest_t::SetPackageID( CUtlString szPackageID )
{
@@ -79,14 +80,14 @@ CUtlString CAppleTool::BuildPackage( AppleManifest_t manifest, CUtlString szMani
return CUtlString("../%s.ipa", manifest.m_szPackageName.GetString());
}
static IAppleDaemon *appledaemon;
static IAppleAuth *g_pAppleAuth;
CUtlString CAppleTool::SignPackage( const char *szIpa, const char *szPassword )
{
CreateInterfaceFn fnFactory = Sys_GetFactory("xtool");
CreateInterfaceFn fnFactory = Sys_GetFactory("appleauth");
if (fnFactory == NULL)
Plat_FatalErrorFunc("Couldn't get xtool\n");
appledaemon = (IAppleDaemon*)fnFactory(APPLE_DAEMON_INTERFACE_VERSION, NULL);
appledaemon->SignPackage(szIpa);
g_pAppleAuth = (IAppleAuth*)fnFactory(APPLE_AUTH_INTERFACE_VERSION, NULL);
g_pAppleAuth->Init();
return szIpa;
}