Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
老鱼er
et
提交
94885543
E
et
项目概览
老鱼er
/
et
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
et
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
94885543
编写于
2月 06, 2017
作者:
T
tanghai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加rsync使用注意事项,妈的垃圾rsync
上级
cad9d640
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
17 deletion
+14
-17
Tools/cwRsync/Config/readme.txt
Tools/cwRsync/Config/readme.txt
+7
-0
Tools/cwRsync/Config/rsyncConfig.txt
Tools/cwRsync/Config/rsyncConfig.txt
+1
-1
Unity/Assets/Editor/RsyncEditor/RsyncEditor.cs
Unity/Assets/Editor/RsyncEditor/RsyncEditor.cs
+1
-0
Unity/Assets/Plugins/Base/Log.cs
Unity/Assets/Plugins/Base/Log.cs
+5
-16
未找到文件。
Tools/cwRsync/Config/readme.txt
0 → 100644
浏览文件 @
94885543
// /etc/rsyncd.secrets必须是600权限,否则报错
// @ERROR: auth failed on module Upload
// rsync error: error starting client-server protocol (code 5) at main.c(1635) [sender=3.1.1]
sudo chmod 600 /etc/rsyncd.secrets
// 启动服务端rsync服务
sudo rsync --daemon
\ No newline at end of file
Tools/cwRsync/Config/rsyncConfig.txt
浏览文件 @
94885543
{ "_t" : "RsyncConfig", "Host" : "192.168.12.188", "Account" : "tanghai", "Password" : "1234567890", "RelativePath" : "Source/Egametang", "Exclude" : [".git/", "Logs/", "Tools/", "Bin/", "Server/packages/", "Temp/", "Server/Server.sdf", "Unity/Library/", "Unity/Temp/", "*/obj"] }
\ No newline at end of file
{ "_t" : "RsyncConfig", "Host" : "192.168.8.235", "Account" : "tanghai", "Password" : "1234567890", "RelativePath" : "Source/Egametang", "Exclude" : [".git/", "Logs/", "Tools/", "Bin/", "Server/packages/", "Temp/", "Server/Server.sdf", "Unity/Library/", "Unity/Temp/", "*/obj"] }
\ No newline at end of file
Unity/Assets/Editor/RsyncEditor/RsyncEditor.cs
浏览文件 @
94885543
...
...
@@ -98,6 +98,7 @@ namespace MyEditor
startInfo
.
WorkingDirectory
=
@"..\"
;
Process
p
=
Process
.
Start
(
startInfo
);
p
.
WaitForExit
();
Log
.
Info
(
$"
{
startInfo
.
FileName
}
{
startInfo
.
Arguments
}
"
);
Log
.
Info
(
"同步完成!"
);
}
}
...
...
Unity/Assets/Plugins/Base/Log.cs
浏览文件 @
94885543
...
...
@@ -6,15 +6,10 @@ namespace Base
{
public
static
class
Log
{
private
static
StreamWriter
info
;
private
static
StreamWriter
error
;
// 每多少秒发一次
public
static
long
SendToServerFrequency
=
20
*
1000
;
public
static
long
SendToServerTime
;
private
static
readonly
StreamWriter
info
;
private
static
readonly
StreamWriter
error
;
#if UNITY_EDITOR
private
static
bool
IsNeedFlush
=
true
;
#else
...
...
@@ -27,8 +22,8 @@ namespace Base
{
Directory
.
CreateDirectory
(
"../Logs"
);
}
info
=
new
StreamWriter
(
$
"../Logs/Log-Client-Info.txt"
,
false
,
Encoding
.
Unicode
,
1024
);
error
=
new
StreamWriter
(
$
"../Logs/Log-Client-Error.txt"
,
false
,
Encoding
.
Unicode
,
1024
);
info
=
new
StreamWriter
(
"../Logs/Log-Client-Info.txt"
,
false
,
Encoding
.
Unicode
,
1024
);
error
=
new
StreamWriter
(
"../Logs/Log-Client-Error.txt"
,
false
,
Encoding
.
Unicode
,
1024
);
}
public
static
void
Warning
(
string
msg
)
...
...
@@ -83,12 +78,6 @@ namespace Base
#if UNITY_EDITOR
UnityEngine
.
Debug
.
LogError
(
s
);
#endif
long
timeNow
=
TimeHelper
.
ClientNow
();
if
(
timeNow
-
SendToServerTime
>
SendToServerFrequency
)
{
SendToServerTime
=
timeNow
;
}
}
public
static
void
Debug
(
string
msg
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录