跳转到主要内容

Task 对象

  • program string - 要执行的程序的路径,通常应指定 process.execPath 来打开当前程序。
  • arguments string - 执行 program 时的命令行参数。
  • title string - 将显示在 JumpList 中的字符串。
  • description string - 此任务的描述。
  • iconPath string - 将显示在 JumpList 中的图标的绝对路径,可以是包含图标的任意资源文件。通常可以指定 process.execPath 来显示程序的图标。
  • iconIndex number - 图标文件中的图标索引。如果图标文件包含两个或更多图标,请设置此值以标识图标。如果图标文件只包含一个图标,则此值为 0。
  • workingDirectory string (可选) - 工作目录。默认为空。