Skip to content

Commit a611266

Browse files
author
None
committed
一键打包支持MAC打包
1 parent a0a0f4a commit a611266

8 files changed

Lines changed: 28 additions & 30 deletions

File tree

‎Assembly-CSharp-Editor.csproj‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@
174174
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Transparent Packed 3.shader" />
175175
<None Include="Assets\NGUI\Examples\Shaders\Unlit - Additive Colored.shader" />
176176
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Transparent Masked.shader" />
177-
<None Include="Assets\StreamingAssets\Windows\AssetBundles.xml" />
178177
<None Include="Assets\NGUI\Examples\Atlases\Refractive\Refractive Font - Header.txt" />
179178
<None Include="Assets\NGUI\Examples\Shaders\Refractive.shader" />
180179
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Text (TextureClip).shader" />

‎Assembly-CSharp.csproj‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@
280280
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Transparent Packed 3.shader" />
281281
<None Include="Assets\NGUI\Examples\Shaders\Unlit - Additive Colored.shader" />
282282
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Transparent Masked.shader" />
283-
<None Include="Assets\StreamingAssets\Windows\AssetBundles.xml" />
284283
<None Include="Assets\NGUI\Examples\Atlases\Refractive\Refractive Font - Header.txt" />
285284
<None Include="Assets\NGUI\Examples\Shaders\Refractive.shader" />
286285
<None Include="Assets\NGUI\Resources\Shaders\Unlit - Text (TextureClip).shader" />

‎Assets/Editor/ABBuild.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4226,6 +4226,7 @@ static public void Cmd_Mac()
42264226
DeleteDirectorAndFiles (macOutPath);
42274227
}
42284228
Directory.CreateDirectory (macOutPath);
4229+
macOutPath += "/client";
42294230
Debug.Log ("Build Mac: " + macOutPath);
42304231
mMgr.BuildPackage(eBuildPlatform.eBuildMac, macOutPath, true);
42314232
}
-1.41 KB
Binary file not shown.

‎Assets/StreamingAssets/Windows/AssetBundles.xml.meta‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎AutoBuild/.idea/workspace.xml‎

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

‎AutoBuild/autobuild.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def UserInputVersion():
102102
checkStr = checkStr % ("Android", BaseResVersion)
103103
elif BuildPlatform == 2:
104104
checkStr = checkStr % ("IOS", BaseResVersion)
105+
elif BuildPlatform == 3:
106+
checkStr = checkStr % ("Mac", BaseResVersion)
105107

106108
while True:
107109
s = raw_input(checkStr)
@@ -308,10 +310,12 @@ def UnityMacProjToApp():
308310
process = subprocess.Popen(cmd, shell=True)
309311
montior.follow(process, 2)
310312

313+
'''
311314
macApp = "%s/%s" % (GetMacExportProjPath(), MacAppName)
312-
if (not os.path.exists(macApp)) or (not os.path.isfile(macApp)):
315+
if (not os.path.exists(macApp)):
313316
print "\n生成App失败~~!!!\n"
314317
return False
318+
'''
315319
return True
316320

317321
#导出WINDOWS的EXE

‎UnityResourceMgr.userprefs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" PreferredExecutionTarget="Unity.Instance.Unity Editor" />
33
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/Editor/ABBuild.cs">
44
<Files>
5-
<File FileName="Assets/Editor/ABBuild.cs" Line="4204" Column="43" />
5+
<File FileName="Assets/Editor/ABBuild.cs" Line="4229" Column="40" />
66
</Files>
77
</MonoDevelop.Ide.Workbench>
88
<MonoDevelop.Ide.DebuggingService.Breakpoints>

0 commit comments

Comments
 (0)