fix path in exported files
This commit is contained in:
@@ -193,7 +193,7 @@ static bool ExportPackage( const RString &sPackageName, const RString &sSourceIn
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
zip.AddNewFile( sSourceInstallDir+sFilePath, bUseCompression?Z_BEST_COMPRESSION:Z_NO_COMPRESSION, true );
|
zip.AddNewFile( sSourceInstallDir+sFilePath, sFilePath, bUseCompression?Z_BEST_COMPRESSION:Z_NO_COMPRESSION, true );
|
||||||
}
|
}
|
||||||
catch (CException* e)
|
catch (CException* e)
|
||||||
{
|
{
|
||||||
@@ -290,11 +290,7 @@ void CSmpackageExportDlg::OnButtonExportAsIndividual()
|
|||||||
// Generate a package name for every path
|
// Generate a package name for every path
|
||||||
RString sPath = asPaths[i];
|
RString sPath = asPaths[i];
|
||||||
|
|
||||||
RString sPackageName;
|
RString sPackageName = ReplaceInvalidFileNameChars( sPath ) + ".smzip";
|
||||||
vector<RString> asPathBits;
|
|
||||||
split( sPath, "/", asPathBits, true );
|
|
||||||
sPackageName = asPathBits[ asPathBits.size()-1 ] + ".smzip";
|
|
||||||
sPackageName = ReplaceInvalidFileNameChars( sPackageName );
|
|
||||||
|
|
||||||
vector<RString> asPathsToExport;
|
vector<RString> asPathsToExport;
|
||||||
asPathsToExport.push_back( sPath );
|
asPathsToExport.push_back( sPath );
|
||||||
|
|||||||
Reference in New Issue
Block a user