Feature: add config sync module

This commit is contained in:
萌萌哒赫萝
2023-05-02 01:20:25 +08:00
parent 6f19cb0cfa
commit ab4e31f62a
14 changed files with 665 additions and 100 deletions

View File

@@ -48,6 +48,7 @@ import clipboardPoll from '../utils/clipboardPoll'
import path from 'path'
import { CLIPBOARD_IMAGE_FOLDER } from '~/universal/utils/static'
import fs from 'fs-extra'
import { syncInterval } from '../utils/syncSettings'
const isDevelopment = process.env.NODE_ENV !== 'production'
const handleStartUpFiles = (argv: string[], cwd: string) => {
@@ -201,6 +202,7 @@ class LifeCycle {
}
const clipboardDir = path.join(picgo.baseDir, CLIPBOARD_IMAGE_FOLDER)
fs.ensureDir(clipboardDir)
syncInterval()
}
app.whenReady().then(readyFunction)
}