bool res = true;
FileUnzipper unzipper;
+ Directory::Remove("/tmp/__manifest/", true);
+ Directory::Create("/tmp/__manifest/", false);
+
result r = unzipper.Construct(packagepath);
SysTryReturn(NID_APP, !IsFailed(r), false, E_SYSTEM, "unzipper.Construct() failed.");
- r = unzipper.UnzipTo(L"/tmp", L"info/manifest.xml");
+ r = unzipper.UnzipTo(L"/tmp/__manifest", L"info/manifest.xml");
SysTryReturn(NID_APP, !IsFailed(r), false, E_SYSTEM, "unzipper.UnzipTo() failed.");
- res = ParseNormalizedDocument("/tmp/info/manifest.xml");
+ res = ParseNormalizedDocument("/tmp/__manifest/info/manifest.xml");
- Directory::Remove("/tmp/info", true);
+ Directory::Remove("/tmp/__manifest/", true);
return res;
}
if (strcasecmp(pSection, "MainMenu") == 0)
{
FileUnzipper unzipper;
- String tmp(L"/tmp/");
+ String tmp(L"/tmp/__icon/");
+ Directory::Remove(tmp, true);
+ Directory::Create(tmp, false);
result r = unzipper.Construct(__packagePath);
SysTryReturn(NID_APP, !IsFailed(r), false, E_SYSTEM, "unzipper.Construct() failed.");