String appRootPath = pContext->__rootPath;
SmackManager smackManager;
- String label("_");
#if 0
oldPath = appRootPath + DIR_RES;
newPath = appRootPath + L"/Res";
std::unique_ptr< char[] > pResPath(_StringConverter::CopyToCharArrayN(newPath));
int ret = symlink("./res", pResPath.get());
- smackManager.AddLabelDir(label, newPath);
+ smackManager.AddLabelDir(pContext->__packageId, newPath);
#endif
#if 0
newPath = appRootPath + L"/Home";
std::unique_ptr< char[] > pHomePath(_StringConverter::CopyToCharArrayN(newPath));
ret = symlink("./data", pHomePath.get());
- smackManager.AddLabelDir(label, newPath);
+ smackManager.AddLabelDir(pContext->__packageId, newPath);
#endif
oldPath = appRootPath + DIR_RES + L"/screen-size-normal";
{
Directory::Create(destDir, true);
}
+
InstallerUtil::Remove(destFile);
- File::Copy(srcFile, destFile, true);
+ r = File::Copy(srcFile, destFile, true);
+ if (IsFailed(r) == true)
+ {
+ AppLog("File::Copy() failed. [%ls] -> [%ls]", srcFile.GetPointer(), destFile.GetPointer());
+ continue;
+ }
if (*pFilePath == L"info/manifest.xml")
{