Compare commits
2 Commits
7b61a073bd
...
3cfbd0da62
| Author | SHA1 | Date |
|---|---|---|
|
|
3cfbd0da62 | |
|
|
2704511e75 |
2
main.js
2
main.js
|
|
@ -138,7 +138,7 @@ app.on('ready', () => {
|
||||||
// 获取当前脚本所在目录的绝对路径
|
// 获取当前脚本所在目录的绝对路径
|
||||||
const currentDirectory = __dirname;
|
const currentDirectory = __dirname;
|
||||||
// 获取安装父目录
|
// 获取安装父目录
|
||||||
const parentDirectory = path.resolve(currentDirectory, '../..');
|
const parentDirectory = path.resolve(currentDirectory, '..');
|
||||||
const customFolderPath = path.join(parentDirectory, 'Downloads');
|
const customFolderPath = path.join(parentDirectory, 'Downloads');
|
||||||
if (!fs.existsSync(customFolderPath)) {
|
if (!fs.existsSync(customFolderPath)) {
|
||||||
// 如果不存在,则创建文件夹
|
// 如果不存在,则创建文件夹
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue