Skip to content

Commit

Permalink
fix issues with securefs on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed May 11, 2024
1 parent 4c3ef1b commit 4c92508
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ else
}

New-Item -ItemType Directory -Path $BUILD_PATH/SiriKali-$VERSION
New-Item -ItemType Directory -Path $BUILD_PATH/SiriKali-$VERSION/local
New-Item -ItemType Directory -Path $BUILD_PATH/SiriKali-$VERSION/local/bin

Copy-Item -Path $SRC_LOCATION/translations -Destination $BUILD_PATH/SiriKali-$VERSION -Recurse
Copy-Item -Path $BUILD_PATH/SiriKali/sirikali.exe -Destination $BUILD_PATH/SiriKali-$VERSION
Copy-Item -Path $BUILD_PATH/SiriKali/sirikali_cppcryptfs.exe -Destination $BUILD_PATH/SiriKali-$VERSION/local/bin/sirikali_cppcryptfs

windeployqt.exe $BUILD_PATH/SiriKali-$VERSION/sirikali.exe --libdir $BUILD_PATH/SiriKali-$VERSION --plugindir $BUILD_PATH/SiriKali-$VERSION

Expand Down
4 changes: 2 additions & 2 deletions src/engines/securefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static QByteArray _get_log( QFile&& file )

QByteArray securefs::extraLogOutput( const engines::engine::args& e ) const
{
if( m_version_greater_or_equal_1_0_0 ){
if( m_version_greater_or_equal_1_0_0 && utility::platformIsNOTWindows() ){

const auto& opts = e.cmd_args ;

Expand Down Expand Up @@ -265,7 +265,7 @@ void securefs::updateOptions( engines::engine::commandOptions& opts,
exeOpts.add( "--fssubtype",fssubtype.RValue().mid( 8 ) ) ;
}

if( m_version_greater_or_equal_1_0_0 ){
if( m_version_greater_or_equal_1_0_0 && utility::platformIsNOTWindows() ){

exeOpts.add( "--log",_logPath( args.mountPoint ) ) ;
}
Expand Down

0 comments on commit 4c92508

Please sign in to comment.