mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 18:24:33 +00:00
not work get dependencies
This commit is contained in:
parent
cda6172fa2
commit
13b1523e30
@ -104,8 +104,6 @@ bool PE::dependecies(QStringList &list, const QString &file,
|
||||
return false;
|
||||
}
|
||||
|
||||
f.close();
|
||||
|
||||
if (!f.seek(meta.addressImports)) {
|
||||
f.close();
|
||||
return false;
|
||||
@ -140,7 +138,7 @@ bool PE::getLibInfo(const QString &lib, LibInfo &info) {
|
||||
}
|
||||
|
||||
info.name = QFileInfo(lib).fileName();
|
||||
info.path = QFileInfo(lib).filePath();
|
||||
info.path = QFileInfo(lib).absolutePath();
|
||||
|
||||
if (static_cast<RunType>(meta.type) == RunType::_32bit) {
|
||||
info.platform = Platform::Win32;
|
||||
|
@ -18,9 +18,9 @@ private:
|
||||
|
||||
constexpr static unsigned int PE_MAGIC = 0x00004550;
|
||||
constexpr static unsigned int INDEX_PE_MAGIC = 0x80;
|
||||
constexpr static unsigned int INDEX_MAGIC = INDEX_PE_MAGIC + 0x16;
|
||||
constexpr static unsigned int INDEX_IMPORTS_32 = INDEX_MAGIC + 0x68;
|
||||
constexpr static unsigned int INDEX_IMPORTS_64 = INDEX_MAGIC + 0x78;
|
||||
constexpr static unsigned int INDEX_MAGIC = INDEX_PE_MAGIC + 0x18;
|
||||
constexpr static unsigned int INDEX_IMPORTS_32 = INDEX_MAGIC + 104;
|
||||
constexpr static unsigned int INDEX_IMPORTS_64 = INDEX_MAGIC + 120;
|
||||
|
||||
public:
|
||||
enum class MashineTypesS: unsigned short {
|
||||
|
@ -25,8 +25,8 @@ void LibCreator::createLib(const QString &resLib,
|
||||
target.close();
|
||||
|
||||
copyedLibs.push_back(target.fileName());
|
||||
libDep.insert(resLib, dep);
|
||||
libplatform.insert(resLib, platform);
|
||||
libDep.insert(target.fileName(), dep);
|
||||
libplatform.insert(target.fileName(), platform);
|
||||
}
|
||||
|
||||
lib.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user