feat: add desktop repo (#1071)

This commit is contained in:
Mo
2022-06-07 11:52:15 -05:00
committed by GitHub
parent 0bb12db948
commit 0b7ce82aaa
135 changed files with 17821 additions and 180 deletions

View File

@@ -0,0 +1,29 @@
import path from 'path'
export default function makeFakePaths(tmpDir: string) {
const Paths = {
get userDataDir(): string {
return tmpDir
},
get documentsDir(): string {
return tmpDir
},
get tempDir(): string {
return tmpDir
},
get extensionsDirRelative(): string {
return 'Extensions'
},
get extensionsDir(): string {
return path.join(Paths.userDataDir, 'Extensions')
},
get extensionsMappingJson(): string {
return path.join(Paths.extensionsDir, 'mapping.json')
},
get windowPositionJson(): string {
return path.join(Paths.userDataDir, 'window-position.json')
},
}
return Paths
}