Skip to content

Commit 3dce5b1

Browse files
author
None
committed
修改一键打包脚本
1 parent 4dc71d7 commit 3dce5b1

4 files changed

Lines changed: 68 additions & 13 deletions

File tree

‎Assembly-CSharp-Editor.csproj‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
<None Include="Assets\NGUI\Examples\Shaders\Unlit - Masked Colored.shader" />
152152
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Premultiplied Colored 3.shader" />
153153
<None Include="Assets\NGUI\Examples\Atlases\Wooden\Arimo18.txt" />
154+
<None Include="Assets\md5Find.txt" />
154155
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Transparent Colored (TextureClip).shader" />
155156
<None Include="Assets\NGUI\Examples\Atlases\SciFi\SciFi Font - Header.txt" />
156157
<None Include="Assets\Resources\@Shaders\SkyBox-Alpha Blend.shader" />
@@ -176,6 +177,7 @@
176177
<None Include="Assets\StreamingAssets\Windows\AssetBundles.xml" />
177178
<None Include="Assets\NGUI\Examples\Atlases\Refractive\Refractive Font - Header.txt" />
178179
<None Include="Assets\NGUI\Examples\Shaders\Refractive.shader" />
180+
<None Include="Assets\AssetBundles.xml" />
179181
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Text (TextureClip).shader" />
180182
<None Include="Assets\NGUI\Examples\Shaders\Unlit - Depth.shader" />
181183
<None Include="Assets\NGUI\Examples\Atlases\SciFi\SciFi Font - Normal.txt" />
@@ -210,10 +212,6 @@
210212
<Reference Include="UnityEditor.iOS.Extensions.Common">
211213
<HintPath>/Applications/Unity/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.Common.dll</HintPath>
212214
</Reference>
213-
</ItemGroup>
214-
<ItemGroup>
215-
<ProjectReference Include="Assembly-CSharp.csproj">
216-
<Project>{C9FDEFFB-4FAB-3868-9F69-14816408FD50}</Project> <Name>Assembly-CSharp</Name> </ProjectReference>
217215
</ItemGroup>
218216
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
219217
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

‎Assembly-CSharp.csproj‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@
257257
<None Include="Assets\NGUI\Examples\Shaders\Unlit - Masked Colored.shader" />
258258
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Premultiplied Colored 3.shader" />
259259
<None Include="Assets\NGUI\Examples\Atlases\Wooden\Arimo18.txt" />
260+
<None Include="Assets\md5Find.txt" />
260261
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Transparent Colored (TextureClip).shader" />
261262
<None Include="Assets\NGUI\Examples\Atlases\SciFi\SciFi Font - Header.txt" />
262263
<None Include="Assets\Resources\@Shaders\SkyBox-Alpha Blend.shader" />
@@ -282,6 +283,7 @@
282283
<None Include="Assets\StreamingAssets\Windows\AssetBundles.xml" />
283284
<None Include="Assets\NGUI\Examples\Atlases\Refractive\Refractive Font - Header.txt" />
284285
<None Include="Assets\NGUI\Examples\Shaders\Refractive.shader" />
286+
<None Include="Assets\AssetBundles.xml" />
285287
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Text (TextureClip).shader" />
286288
<None Include="Assets\NGUI\Examples\Shaders\Unlit - Depth.shader" />
287289
<None Include="Assets\NGUI\Examples\Atlases\SciFi\SciFi Font - Normal.txt" />

‎AutoBuild/.idea/workspace.xml‎

Lines changed: 49 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎AutoBuild/autobuild.py‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import os, sys, platform
88
import configfile
9+
import tail
910

1011
#######全局变量
1112

@@ -96,6 +97,9 @@ def IsWindowsPlatform():
9697
def IsMacPlatform():
9798
return "Darwin" in platform.system()
9899

100+
def MonitorLine(txt):
101+
print txt
102+
99103
def UnityBuildABProj():
100104

101105
global BuildPlatform
@@ -117,6 +121,11 @@ def UnityBuildABProj():
117121
return False
118122

119123
logFile = "%s/autobuild.txt" % GetUnityProjPath();
124+
125+
if (not os.access(logFile, os.F_OK)):
126+
f = open(logFile, "w")
127+
f.close()
128+
120129
cmd = ""
121130
if IsMacPlatform():
122131
cmd = "/Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -nographics -projectPath %s -executeMethod %s -logFile " + logFile
@@ -129,9 +138,13 @@ def UnityBuildABProj():
129138
if not BuildPlatform in [0, 1, 2]:
130139
return False
131140

141+
montior = tail.Tail(logFile)
142+
montior.register_callback(MonitorLine)
143+
132144
copyCmd = cmd % (GetUnityOrgProjPath(), "AssetBundleBuild.Cmd_Build_Copy")
133145
print "正在拷贝文件..."
134146
os.system(copyCmd)
147+
#montior.follow(5)
135148

136149
func = ""
137150
if BuildPlatform == 1:
@@ -196,5 +209,6 @@ def Main():
196209
return
197210

198211
##################################### 调用入口 ###################################
199-
Main()
212+
if __name__ == '__main__':
213+
Main()
200214
#################################################################################

0 commit comments

Comments
 (0)