mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-21 03:12:10 +08:00
添加对服务端jar文件使用绝对路径的支持
This commit is contained in:
parent
f792208963
commit
ebf43c4121
@ -141,8 +141,12 @@ class ServerProcess extends EventEmitter {
|
||||
|
||||
this._loading = true;
|
||||
|
||||
let jarPath = (this.dataModel.cwd + '/' + this.dataModel.jarName).replace(/\/\//igm, '/');
|
||||
|
||||
let jarPath = this.dataModel.jarName;
|
||||
if (!path.isAbsolute(jarPath)) {
|
||||
jarPath = (this.dataModel.cwd + '/' + this.dataModel.jarName)
|
||||
}
|
||||
jarPath = jarPath.replace(/\/\//igm, '/');
|
||||
|
||||
//选择启动方式 自定义命令与配置启动
|
||||
if (!this.dataModel.highCommande) {
|
||||
//只在非自定义模式下检查参数
|
||||
|
Loading…
Reference in New Issue
Block a user