mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-25 02:09:48 +01:00
Smarter windows logic for finding resolver executable
This commit is contained in:
parent
fdfda2e435
commit
f7f4cbb781
@ -889,8 +889,15 @@ extractBinaryResolver( const QString& zipFilename, QObject* receiver )
|
||||
if ( resolverId.isEmpty() )
|
||||
return;
|
||||
|
||||
const QString resolverDir = extractScriptPayload( zipFilename, resolverId );
|
||||
QMetaObject::invokeMethod(receiver, "installSucceeded", Qt::DirectConnection, Q_ARG( QString, path ) );
|
||||
const QDir resolverPath( extractScriptPayload( zipFilename, resolverId ) )
|
||||
const QStringList files = resolverPath.entryList( QStringList() << "*.exe", QDir::Files );
|
||||
qDebug() << "Found executables in unzipped binary resolver dir:" << files;
|
||||
Q_ASSERT( files.size() == 1 );
|
||||
if ( files.size() < 1 )
|
||||
return;
|
||||
|
||||
const QString resolverToUse = resolverPath.absoluteFilePath( files.first() );
|
||||
QMetaObject::invokeMethod(receiver, "installSucceeded", Qt::DirectConnection, Q_ARG( QString, resolverToUse ) );
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user