mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-15 19:09:36 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
f.close();
|
|
||||||
|
|
||||||
if (!f.seek(meta.addressImports)) {
|
if (!f.seek(meta.addressImports)) {
|
||||||
f.close();
|
f.close();
|
||||||
return false;
|
return false;
|
||||||
@ -140,7 +138,7 @@ bool PE::getLibInfo(const QString &lib, LibInfo &info) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
info.name = QFileInfo(lib).fileName();
|
info.name = QFileInfo(lib).fileName();
|
||||||
info.path = QFileInfo(lib).filePath();
|
info.path = QFileInfo(lib).absolutePath();
|
||||||
|
|
||||||
if (static_cast<RunType>(meta.type) == RunType::_32bit) {
|
if (static_cast<RunType>(meta.type) == RunType::_32bit) {
|
||||||
info.platform = Platform::Win32;
|
info.platform = Platform::Win32;
|
||||||
|
@ -18,9 +18,9 @@ private:
|
|||||||
|
|
||||||
constexpr static unsigned int PE_MAGIC = 0x00004550;
|
constexpr static unsigned int PE_MAGIC = 0x00004550;
|
||||||
constexpr static unsigned int INDEX_PE_MAGIC = 0x80;
|
constexpr static unsigned int INDEX_PE_MAGIC = 0x80;
|
||||||
constexpr static unsigned int INDEX_MAGIC = INDEX_PE_MAGIC + 0x16;
|
constexpr static unsigned int INDEX_MAGIC = INDEX_PE_MAGIC + 0x18;
|
||||||
constexpr static unsigned int INDEX_IMPORTS_32 = INDEX_MAGIC + 0x68;
|
constexpr static unsigned int INDEX_IMPORTS_32 = INDEX_MAGIC + 104;
|
||||||
constexpr static unsigned int INDEX_IMPORTS_64 = INDEX_MAGIC + 0x78;
|
constexpr static unsigned int INDEX_IMPORTS_64 = INDEX_MAGIC + 120;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum class MashineTypesS: unsigned short {
|
enum class MashineTypesS: unsigned short {
|
||||||
|
@ -25,8 +25,8 @@ void LibCreator::createLib(const QString &resLib,
|
|||||||
target.close();
|
target.close();
|
||||||
|
|
||||||
copyedLibs.push_back(target.fileName());
|
copyedLibs.push_back(target.fileName());
|
||||||
libDep.insert(resLib, dep);
|
libDep.insert(target.fileName(), dep);
|
||||||
libplatform.insert(resLib, platform);
|
libplatform.insert(target.fileName(), platform);
|
||||||
}
|
}
|
||||||
|
|
||||||
lib.close();
|
lib.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user