mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Smarter windows logic for finding resolver executable
This commit is contained in:
@@ -889,8 +889,15 @@ extractBinaryResolver( const QString& zipFilename, QObject* receiver )
|
|||||||
if ( resolverId.isEmpty() )
|
if ( resolverId.isEmpty() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const QString resolverDir = extractScriptPayload( zipFilename, resolverId );
|
const QDir resolverPath( extractScriptPayload( zipFilename, resolverId ) )
|
||||||
QMetaObject::invokeMethod(receiver, "installSucceeded", Qt::DirectConnection, Q_ARG( QString, path ) );
|
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
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user