This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 295
295
Other similar extension points exist, see Microsoft.Common.targets.
296
296
<Target Name="BeforeBuild">
297
297
</Target>
298
+ -->
298
299
<Target Name =" AfterBuild" >
300
+ <Copy
301
+ SourceFiles =" PlatformResources\linux\git-lfs.zip;PlatformResources\linux\git-lfs.json"
302
+ DestinationFolder =" $(SolutionDir)\src\UnityExtension\Assets\Editor\GitHub.Unity\PlatformResources\linux"
303
+ SkipUnchangedFiles =" true"
304
+ />
305
+
306
+ <Copy
307
+ SourceFiles =" PlatformResources\mac\git-lfs.zip;PlatformResources\mac\git-lfs.json"
308
+ DestinationFolder =" $(SolutionDir)\src\UnityExtension\Assets\Editor\GitHub.Unity\PlatformResources\mac"
309
+ SkipUnchangedFiles =" true"
310
+ />
311
+
312
+ <Copy
313
+ SourceFiles =" PlatformResources\windows\git.zip;PlatformResources\windows\git.json;PlatformResources\windows\git-lfs.zip;PlatformResources\windows\git-lfs.json"
314
+ DestinationFolder =" $(SolutionDir)\src\UnityExtension\Assets\Editor\GitHub.Unity\PlatformResources\windows"
315
+ SkipUnchangedFiles =" true"
316
+ />
299
317
</Target >
300
- -->
301
318
<Import Project =" ..\..\common\build.targets" />
302
319
</Project >
Original file line number Diff line number Diff line change @@ -55,8 +55,14 @@ public GitInstallationState SetupGitIfNeeded(GitInstallationState state = null)
55
55
}
56
56
57
57
state = VerifyZipFiles ( state ) ;
58
+ // on developer builds, prefer local zips over downloading
59
+ #if DEVELOPER_BUILD
60
+ state = GrabZipFromResourcesIfNeeded ( state ) ;
61
+ state = GetZipsIfNeeded ( state ) ;
62
+ #else
58
63
state = GetZipsIfNeeded ( state ) ;
59
64
state = GrabZipFromResourcesIfNeeded ( state ) ;
65
+ #endif
60
66
state = ExtractGit ( state ) ;
61
67
62
68
// if installing from zip failed (internet down maybe?), try to find a usable system git
Original file line number Diff line number Diff line change 1
1
* .csproj
2
2
UnityPackageManager
3
3
JetBrains
4
- UnityExtension.sln
4
+ UnityExtension.sln
5
+ Assets /** /* .zip
6
+ Assets /** /* .md5
7
+ Assets /** /* .json
You can’t perform that action at this time.
0 commit comments