docs: async function updateVersionH (components) {
    const filePath = path.resolve(__dirname, '..', 'atom', 'common', 'atom_version.h')
    const data = await readFile(filePath, 'utf8')
    const arr = data.split('\n')
    const pre = components.pre && components.pre.length >= 2 ? `-${components.pre[0]}.${components.pre[1]}` : null
  
    arr.forEach((item, idx) => {
      if (item.includes('#define ATOM_MAJOR_VERSION')) {
        arr[idx] = `#define ATOM_MAJOR_VERSION ${components.major}`
        arr[idx + 1] = `#define ATOM_MINOR_VERSION ${components.minor}`
        arr[idx + 2] = `#define ATOM_PATCH_VERSION ${components.patch}`
        arr[idx + 4] = pre ? `#define ATOM_PRE_RELEASE_VERSION ${pre}` : '// #define ATOM_PRE_RELEASE_VERSION'
      }
    })
    await writeFile(filePath, arr.join('\n'))
  }