- Fix icon item image size to ignore biImageSize when biCompression is BI_RGB (#56)
- Update pe-library
- Add nullish check for some fields
- Add demo page link to README
- Change the library to native ES module
- CommonJS scripts now requires to use
resedit/cjs
module to use the library.
- CommonJS scripts now requires to use
- Add support for ES module loading in Node.js environment
- Update pe-library
- Fix width byte calculation (#30)
- Update pe-library
- Update pe-library
- Remove more unused functions/files
- resedit now uses pe-library to parsing/generating PE binaries
ResEdit.NtExecutable
and some classes are now aliases of pe-library's classes.
- Add
signData
method toSignerObject
- Add 'setFileVersion' and 'setProductVersion' methods to VersionInfo (#23)
- Add options to generateResourceData/outputResource (#21)
- Add
sizeImage
onBitmapInfo
to keep original values - Change icon mask to be non-null data
- Add BigInt support for
ImageOptionalHeader64
- Add
getResourceEntriesAsString
,replaceResourceEntryFromString
, andremoveResourceEntry
methods inNtExecutableResource
- Drop Node.js v10
- Add
NtExecutable.createEmpty
which creates 'empty' executable data - Add ESM (ES Module) support
- Fix some minor bugs
- Add support for extra data, which is not a part of any sections, on parsing/generating executables
- Add
alignment
parameter forgenerateExecutableWithSign
- Add predefined digest algorithms and support OIDs for
getDigestAlgorithm
andgetEncryptionAlgorithm
- Fix calculating executable digest for binaries which previously contained signed information
- Rename
getPublicKeyData
togetCertificateData
getPublicKeyData
can still be used now, but will be no longer called in the future.
- Re-export types used by
SignerObject
- Improve usability for some classes, such as
VersionInfo
andIconGroupEntry
- Update descriptions for some types / methods
- Add support for multiple certificates on
SignerObject.getPublicKeyData
- Added signing process function (#14), which enables to generate signed executable binaries
- Additionally, signed executables are now supported on
NtExecutable.from
with explicit option. (OnNtExecutable.generate
signed information will be lost.)
- Additionally, signed executables are now supported on
- Support for
ArrayBufferView
as an input data for some methods (e.g.NtExecutable.from
andIconFile.from
)- TypedArray (e.g.
Uint8Array
),DataView
, and Node.jsBuffer
class are subclasses ofArrayBufferView
, so these classes now can be used as input data directly.
- TypedArray (e.g.
- Added missing string table rounding up for
VersionInfo
(#13, thanks to @AlexanderOMara)
- Throw error if specified executable binary is signed (#10)
- Implemented PE checksum calculation (#8, thanks to @AlexanderOMara)
- (Internal change) Updated package dependencies for developments
- TypeScript version is updated to 3.7.x, so the type definitions might be incompatible for older version of TypeScript (especially <3.4.x)
- Fix width and height usage for icon group, especially when loading from an icon file (#5)
- Fix the build paths to match package.json file (#3, thanks to @AlexanderOMara)
- Fix some bugs as followings:
- Fix adding new section entry to executable
- Fix changing section addresses on replacement
- Fix parsing icon resource data and icon file data
- Add
is32bit
method forNtExecutable
andremoveAllStrings
method forVersionInfo
- Initial version