提交 cbeba849 编写于 作者: H Hao Sun

fix server execute file path for client.

上级 c385f9e3
......@@ -21,7 +21,7 @@ export function startZtfServer() {
if (!serverExePath && !DEBUG) {
const platform = os.platform(); // 'darwin', 'linux', 'win32'
const exePath = `bin/${platform}/ztf${platform === 'win32' ? '.exe' : ''}`;
serverExePath = path.resolve(process.resourcesPath, exePath);
serverExePath = path.join(process.resourcesPath, exePath);
}
if (serverExePath) {
if (!path.isAbsolute(serverExePath)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册