Mac OS: ~/Library/Application Support/<Your App Name (taken from the name property in package.json)>
Windows: C:\Users\<you>\AppData\Local\<Your App Name>
Linux: ~/.config/<Your App Name>
通过Electron的 app.getPath 可以根据运行的操作系统类型,得到正确的user data存放目录。
Electron provides app.getPath which returns the right directory, depending on your platform.