Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
魔术师Dix
UPM解决方案:苍耳
提交
420d19c1
UPM解决方案:苍耳
项目概览
魔术师Dix
/
UPM解决方案:苍耳
通知
26
Star
3
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
UPM解决方案:苍耳
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
420d19c1
编写于
12月 27, 2022
作者:
魔术师Dix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【UpmGitTool】更新数据结构;
上级
c1562fa0
变更
18
展开全部
隐藏空白更改
内联
并排
Showing
18 changed file
with
61 addition
and
2184 deletion
+61
-2184
.gitignore
.gitignore
+6
-0
UpmGitExtension/Assets/UpmGitExtension/Editor/Core/Extensions/UpmPackageVersionEx.cs
...itExtension/Editor/Core/Extensions/UpmPackageVersionEx.cs
+1
-1
UpmGitExtension/Assets/UpmGitExtension/Editor/Core/UpmGitUtils.cs
...tension/Assets/UpmGitExtension/Editor/Core/UpmGitUtils.cs
+1
-1
UpmGitExtension/Packages/manifest.json
UpmGitExtension/Packages/manifest.json
+1
-1
UpmGitExtension/Packages/packages-lock.json
UpmGitExtension/Packages/packages-lock.json
+1
-1
UpmGitExtension/ProjectSettings/ProjectVersion.txt
UpmGitExtension/ProjectSettings/ProjectVersion.txt
+2
-2
UpmGitTool/Assets/Scritps/Core/Fetch/FetchResult.cs
UpmGitTool/Assets/Scritps/Core/Fetch/FetchResult.cs
+3
-1
UpmGitTool/Assets/Scritps/Core/Fetch/UPackage.cs
UpmGitTool/Assets/Scritps/Core/Fetch/UPackage.cs
+19
-1
UpmGitTool/Assets/Scritps/Core/Fetch/UpmPackageVersion.cs
UpmGitTool/Assets/Scritps/Core/Fetch/UpmPackageVersion.cs
+11
-0
UpmGitTool/Assets/Scritps/Core/Manifest/PackageItem.cs
UpmGitTool/Assets/Scritps/Core/Manifest/PackageItem.cs
+15
-2
UpmGitTool/Assets/StreamingAssets/build_info
UpmGitTool/Assets/StreamingAssets/build_info
+1
-1
UpmGitTool/UserSettings/EditorUserSettings.asset
UpmGitTool/UserSettings/EditorUserSettings.asset
+0
-28
UpmGitTool/UserSettings/Layouts/default-2022.dwlt
UpmGitTool/UserSettings/Layouts/default-2022.dwlt
+0
-1172
UpmGitTool/UserSettings/Search.settings
UpmGitTool/UserSettings/Search.settings
+0
-1
UpmPublisher/UpmPublisher/.vs/UpmPublisher/FileContentIndex/bffa661d-e530-46f4-8611-ce31b91deae3.vsidx
...leContentIndex/bffa661d-e530-46f4-8611-ce31b91deae3.vsidx
+0
-0
UpmPublisher/UpmPublisher/.vs/UpmPublisher/FileContentIndex/read.lock
.../UpmPublisher/.vs/UpmPublisher/FileContentIndex/read.lock
+0
-0
UpmPublisher/UpmPublisher/.vs/UpmPublisher/config/applicationhost.config
...mPublisher/.vs/UpmPublisher/config/applicationhost.config
+0
-972
UpmPublisher/UpmPublisher/.vs/UpmPublisher/v17/.suo
UpmPublisher/UpmPublisher/.vs/UpmPublisher/v17/.suo
+0
-0
未找到文件。
.gitignore
浏览文件 @
420d19c1
...
...
@@ -12,3 +12,9 @@
/UpmGitTool/.vs
/UpmGitTool/bin
/UpmGitTool/obj
/UpmGitTool/Temp
/UpmGitTool/Library
/UpmGitTool/Logs
/UpmGitTool/*.csproj
/UpmPublisher/UpmPublisher/.vs
/UpmGitTool/UserSettings
UpmGitExtension/Assets/UpmGitExtension/Editor/Core/Extensions/UpmPackageVersionEx.cs
浏览文件 @
420d19c1
#if UNITY_2020_3_41|| UNITY_2021_3_12
#if UNITY_2020_3_41|| UNITY_202
0_3_42|| UNITY_202
1_3_12
#define UPM_GIT_NEW
#else
#undef UPM_GIT_NEW
...
...
UpmGitExtension/Assets/UpmGitExtension/Editor/Core/UpmGitUtils.cs
浏览文件 @
420d19c1
#if UNITY_2020_3_41 || UNITY_2021_3_12
#if UNITY_2020_3_41 || UNITY_202
0_3_42 || UNITY_202
1_3_12
#define UPM_GIT_NEW
#else
#undef UPM_GIT_NEW
...
...
UpmGitExtension/Packages/manifest.json
浏览文件 @
420d19c1
{
"dependencies"
:
{
"com.unity.collab-proxy"
:
"1.17.
2
"
,
"com.unity.collab-proxy"
:
"1.17.
6
"
,
"com.unity.ide.visualstudio"
:
"2.0.16"
,
"com.unity.ide.vscode"
:
"1.2.5"
,
"com.unity.test-framework"
:
"1.1.33"
,
...
...
UpmGitExtension/Packages/packages-lock.json
浏览文件 @
420d19c1
{
"dependencies"
:
{
"com.unity.collab-proxy"
:
{
"version"
:
"1.17.
2
"
,
"version"
:
"1.17.
6
"
,
"depth"
:
0
,
"source"
:
"registry"
,
"dependencies"
:
{
...
...
UpmGitExtension/ProjectSettings/ProjectVersion.txt
浏览文件 @
420d19c1
m_EditorVersion: 2020.3.4
1
f1c1
m_EditorVersionWithRevision: 2020.3.4
1f1c1 (148a17cb7d64
)
m_EditorVersion: 2020.3.4
2
f1c1
m_EditorVersionWithRevision: 2020.3.4
2f1c1 (b85f4368f10f
)
UpmGitTool/Assets/Scritps/Core/Fetch/FetchResult.cs
浏览文件 @
420d19c1
...
...
@@ -32,7 +32,9 @@ namespace UpmGitTool
public
void
OnAfterDeserialize
()
{
if
(
versions
==
null
)
return
;
foreach
(
var
version
in
versions
)
version
?.
OnAfterDeserialize
();
}
}
...
...
UpmGitTool/Assets/Scritps/Core/Fetch/UPackage.cs
浏览文件 @
420d19c1
...
...
@@ -31,12 +31,25 @@ namespace UpmGitTool
public
void
SetData
(
FetchResult
fetch
)
{
FetchResult
=
fetch
;
//查找当前安装的版本;
if
(
PackageItem
==
null
)
return
;
if
(
fetch
.
versions
==
null
)
return
;
string
pkgId
=
PackageItem
.
PackageId
;
InstallVersion
=
null
;
foreach
(
var
version
in
fetch
.
versions
)
{
if
(
version
.
PackageId
==
pkgId
)
{
InstallVersion
=
version
;
break
;
}
}
}
public
UPackage
(
FetchResult
fetch
)
{
SetData
(
fetch
);
Key
=
fetch
.
url
;
SetData
(
fetch
);
}
/// <summary>
...
...
@@ -44,5 +57,10 @@ namespace UpmGitTool
/// </summary>
public
UpmPackageVersion
InstallVersion
;
/// <summary>
/// 当前工程是否有已经安装的包;
/// </summary>
public
bool
IsIstalled
=>
InstallVersion
!=
null
;
}
}
\ No newline at end of file
UpmGitTool/Assets/Scritps/Core/Fetch/UpmPackageVersion.cs
浏览文件 @
420d19c1
...
...
@@ -48,5 +48,16 @@ namespace UpmGitTool
public
DependencyInfo
[]
Dependencies
=>
m_Dependencies
;
public
string
DocumentationUrl
=>
m_DocumentationUrl
;
public
string
ChangelogUrl
=>
m_ChangelogUrl
;
public
string
GitUrl
{
get
;
private
set
;
}
public
string
PackageName
{
get
;
private
set
;
}
public
void
OnAfterDeserialize
()
{
var
strArr
=
PackageId
.
Split
(
'@'
);
PackageName
=
strArr
[
0
];
GitUrl
=
strArr
[
1
];
}
}
}
\ No newline at end of file
UpmGitTool/Assets/Scritps/Core/Manifest/PackageItem.cs
浏览文件 @
420d19c1
...
...
@@ -22,8 +22,12 @@ namespace UpmGitTool
[
SerializeField
]
public
string
Name
;
/// <summary>
/// PackageId : 包 Git Url ;
/// https://…….git#……
/// </summary>
[
SerializeField
]
public
string
Pa
th
;
public
string
Pa
ckageUrl
;
public
bool
IsGitUrl
{
get
;
private
set
;
}
...
...
@@ -31,7 +35,7 @@ namespace UpmGitTool
public
PackageItem
(
string
name
,
string
path
)
{
Name
=
name
;
Pa
th
=
path
;
Pa
ckageUrl
=
path
;
IsGitUrl
=
false
;
//检测路径
...
...
@@ -42,6 +46,9 @@ namespace UpmGitTool
var
splitStr
=
path
.
Split
(
'#'
);
GitPath
=
splitStr
[
0
];
BranchName
=
splitStr
[
1
];
//拼写git package id
PackageId
=
$"
{
name
}
@
{
path
}
"
;
}
}
...
...
@@ -49,6 +56,12 @@ namespace UpmGitTool
public
string
BranchName
{
get
;
private
set
;
}
/// <summary>
/// 包 PkgID,com.……@https://…….git#……
/// 这个可以与拉下来的version对应
/// </summary>
public
string
PackageId
{
get
;
private
set
;
}
public
void
OnFetchResult
(
int
exitCode
)
{
...
...
UpmGitTool/Assets/StreamingAssets/build_info
浏览文件 @
420d19c1
Build from CHIEF at 2022/12/26 18:22:42
\ No newline at end of file
Build from CHIEF at 2022/12/27 9:42:19
\ No newline at end of file
UpmGitTool/UserSettings/EditorUserSettings.asset
已删除
100644 → 0
浏览文件 @
c1562fa0
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!162
&1
EditorUserSettings
:
m_ObjectHideFlags
:
0
serializedVersion
:
4
m_ConfigSettings
:
RecentlyUsedSceneGuid-0
:
value
:
515250075c0c595e5f5a5e71122159444e4e4a2f7a7d7f602f284d66b4b76661
flags
:
0
vcSharedLogLevel
:
value
:
0d5e400f0650
flags
:
0
m_VCAutomaticAdd
:
1
m_VCDebugCom
:
0
m_VCDebugCmd
:
0
m_VCDebugOut
:
0
m_SemanticMergeMode
:
2
m_DesiredImportWorkerCount
:
3
m_StandbyImportWorkerCount
:
2
m_IdleImportWorkerShutdownDelay
:
60000
m_VCShowFailedCheckout
:
1
m_VCOverwriteFailedCheckoutAssets
:
1
m_VCProjectOverlayIcons
:
1
m_VCHierarchyOverlayIcons
:
1
m_VCOtherOverlayIcons
:
1
m_VCAllowAsyncUpdate
:
1
m_ArtifactGarbageCollection
:
1
UpmGitTool/UserSettings/Layouts/default-2022.dwlt
已删除
100644 → 0
浏览文件 @
c1562fa0
此差异已折叠。
点击以展开。
UpmGitTool/UserSettings/Search.settings
已删除
100644 → 0
浏览文件 @
c1562fa0
{}
\ No newline at end of file
UpmPublisher/UpmPublisher/.vs/UpmPublisher/FileContentIndex/bffa661d-e530-46f4-8611-ce31b91deae3.vsidx
已删除
100644 → 0
浏览文件 @
c1562fa0
文件已删除
UpmPublisher/UpmPublisher/.vs/UpmPublisher/FileContentIndex/read.lock
已删除
100644 → 0
浏览文件 @
c1562fa0
UpmPublisher/UpmPublisher/.vs/UpmPublisher/config/applicationhost.config
已删除
100644 → 0
浏览文件 @
c1562fa0
此差异已折叠。
点击以展开。
UpmPublisher/UpmPublisher/.vs/UpmPublisher/v17/.suo
已删除
100644 → 0
浏览文件 @
c1562fa0
文件已删除
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录