Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有关多平台支持的问题 #24

Open
shigma opened this issue Jun 28, 2018 · 0 comments
Open

有关多平台支持的问题 #24

shigma opened this issue Jun 28, 2018 · 0 comments
Assignees
Labels
bug 程序表现出与预期不符的现象

Comments

@shigma
Copy link
Collaborator

shigma commented Jun 28, 2018

本来是没有做多平台支持的。但是现在既然要发布多平台的版本,就请注意对应的一些配置了。

Thulium-Music-3/user.js

Lines 43 to 58 in 3a8e443

switch (process.platform) {
case 'win32': {
const userParentPath = path.join(process.env.LOCALAPPDATA, 'Obstudio/')
TmUser.UserPath = path.join(userParentPath, 'Thulium 3/')
if (!fs.existsSync(userParentPath)) fs.mkdirSync(userParentPath)
if (!fs.existsSync(TmUser.UserPath)) fs.mkdirSync(TmUser.UserPath)
const dataParentPath = path.join(process.env.ALLUSERSPROFILE, 'Obstudio/')
TmUser.DataPath = path.join(dataParentPath, 'Thulium 3/')
if (!fs.existsSync(dataParentPath)) fs.mkdirSync(dataParentPath)
if (!fs.existsSync(TmUser.DataPath)) fs.mkdirSync(TmUser.DataPath)
TmUser.LineEnding = 'CRLF'
break
}
default:
// DO SOMETHING
}

@shigma shigma added the bug 程序表现出与预期不符的现象 label Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 程序表现出与预期不符的现象
Projects
None yet
Development

No branches or pull requests

2 participants