mirror of
https://github.com/pesde-pkg/tooling.git
synced 2025-04-20 03:44:04 +01:00
refactor(lib): use extractEntry function
This commit is contained in:
parent
e223c58b2f
commit
863d1ce95d
1 changed files with 1 additions and 6 deletions
|
@ -71,12 +71,7 @@ local extractBinary: {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local contents = reader:extract(entry, { type = "binary" }) :: buffer
|
extractEntry(entry)
|
||||||
local executablePlatform = PlatformDescriptor.fromExecutable(contents)
|
|
||||||
|
|
||||||
if executablePlatform:isOk() and eq(executablePlatform:unwrap(), targetPlatform) then
|
|
||||||
binaryContents = contents
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue