Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e0c5f6e64 | ||
|
|
b0f35af052 |
@@ -15,6 +15,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.SHRINKSDK_PACKAGE_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.SHRINKSDK_PACKAGE_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Git
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
if ! command -v git >/dev/null 2>&1; then
|
||||||
|
apt-get update
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git ca-certificates
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Fetch tagged revision
|
- name: Fetch tagged revision
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -23,7 +33,7 @@ jobs:
|
|||||||
test -n "$ref"
|
test -n "$ref"
|
||||||
git init .
|
git init .
|
||||||
git remote add origin "https://git.crash.work/ShrinkSDK/ShrinkModFramework.git"
|
git remote add origin "https://git.crash.work/ShrinkSDK/ShrinkModFramework.git"
|
||||||
git fetch --depth=1 origin "$ref"
|
git fetch --depth=1 --tags origin "$ref"
|
||||||
git checkout --detach FETCH_HEAD
|
git checkout --detach FETCH_HEAD
|
||||||
|
|
||||||
- name: Validate immutable release version
|
- name: Validate immutable release version
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
本文件记录 `ShrinkModFramework` 在当前工作区中的包内变更。
|
本文件记录 `ShrinkModFramework` 在当前工作区中的包内变更。
|
||||||
|
|
||||||
|
## [0.2.1] - 2026-08-26
|
||||||
|
|
||||||
|
- 将 EventBus 生成器源码和 fixture builder 收敛到各自 UPM 包的 `Tools~`,并为独立包导出提供随包分析器回退。
|
||||||
|
- 修正 Unity 2022 中 `PackageInfo` 的命名空间冲突,确保包可独立编译。
|
||||||
|
|
||||||
## [0.2.0] - 2026-08-24
|
## [0.2.0] - 2026-08-24
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEditor.PackageManager;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public static class ShrinkModSdkExporter
|
public static class ShrinkModSdkExporter
|
||||||
@@ -180,7 +179,7 @@ public static class ShrinkModSdkExporter
|
|||||||
if (File.Exists(workspaceProjectPath))
|
if (File.Exists(workspaceProjectPath))
|
||||||
return workspaceProjectPath;
|
return workspaceProjectPath;
|
||||||
|
|
||||||
var package = PackageInfo.GetAllRegisteredPackages()
|
var package = UnityEditor.PackageManager.PackageInfo.GetAllRegisteredPackages()
|
||||||
.FirstOrDefault(candidate => string.Equals(candidate.name, EventBusPackageName, StringComparison.Ordinal));
|
.FirstOrDefault(candidate => string.Equals(candidate.name, EventBusPackageName, StringComparison.Ordinal));
|
||||||
if (package == null)
|
if (package == null)
|
||||||
return null;
|
return null;
|
||||||
@@ -195,7 +194,7 @@ public static class ShrinkModSdkExporter
|
|||||||
if (File.Exists(Path.Combine(workspacePackagePath, "package.json")))
|
if (File.Exists(Path.Combine(workspacePackagePath, "package.json")))
|
||||||
return workspacePackagePath;
|
return workspacePackagePath;
|
||||||
|
|
||||||
var package = PackageInfo.GetAllRegisteredPackages()
|
var package = UnityEditor.PackageManager.PackageInfo.GetAllRegisteredPackages()
|
||||||
.FirstOrDefault(candidate => string.Equals(candidate.name, ModFrameworkPackageName, StringComparison.Ordinal));
|
.FirstOrDefault(candidate => string.Equals(candidate.name, ModFrameworkPackageName, StringComparison.Ordinal));
|
||||||
if (package != null && Directory.Exists(package.resolvedPath))
|
if (package != null && Directory.Exists(package.resolvedPath))
|
||||||
return package.resolvedPath;
|
return package.resolvedPath;
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ec776e12e2fe06a4485f26ec7d59f17f
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9eb7e4fe5738bf440872431b06e33b04
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.cneicy.shrink-mod-framework",
|
"name": "com.cneicy.shrink-mod-framework",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"displayName": "ShrinkModFramework",
|
"displayName": "ShrinkModFramework",
|
||||||
"description": "Unity 模组框架,提供发现、依赖、可逆生命周期、命名空间内容注册与优先级覆盖。",
|
"description": "Unity 模组框架,提供发现、依赖、可逆生命周期、命名空间内容注册与优先级覆盖。",
|
||||||
"unity": "2022.3",
|
"unity": "2022.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user