public void generate() throws IOException {
    if (myStringTableDirectory != null) {
      myStringTableDirectory.save();
    }

    saveVersionInfo();

    myReader.resetOffsets(0);
    myReader.sectionVirtualAddressFixup();

    Files.deleteIfExists(myExePath);
    Files.createDirectories(myExePath.getParent());
    try (var stream = new DataOutputStream(Files.newOutputStream(myExePath))) {
      myReader.write(stream);
    }

    verifySize();
    verifySections();
    verifyVersionInfo();
  }
public void generate()