Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: get_version
uses: martinbeentjes/npm-get-version-action@v1.3.1
with:
path: Unity-Package/Assets/root
path: Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem

- name: Find previous version tag
id: prev_tag
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
UPM_SERVICE_ACCOUNT_KEY_ID: ${{ secrets.UPM_SERVICE_ACCOUNT_KEY_ID }}
UPM_SERVICE_ACCOUNT_KEY_SECRET: ${{ secrets.UPM_SERVICE_ACCOUNT_KEY_SECRET }}
UPM_ORG_ID: ${{ secrets.UPM_ORG_ID }}
PACKAGE_DIR: Unity-Package/Assets/root
PACKAGE_DIR: Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem
DIST_DIR: /tmp/signed-upm-dist
steps:
- name: Verify signing secrets are configured
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Unity package `com.ivanmurzak.unity.mcp.particlesystem` exposing two MCP tools

## Build / run

- Package source: `Unity-Package/Assets/root/` (Editor + Runtime + Tests)
- Package source: `Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/` (Editor + Runtime + Tests)
- Update Unity-MCP dependency: `.\commands\update-ai-game-developer.ps1` (`-WhatIf` to preview)
- Bump version: `.\commands\bump-version.ps1 -NewVersion "x.y.z"` (`-WhatIf` to preview)
- Tests run inside Unity Editor (NUnit + `[UnityTest]`); CI uses `game-ci/unity-test-runner@v4`.
Expand Down
6 changes: 1 addition & 5 deletions Installer/Assets/Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
"url": "https://package.openupm.com",
"scopes": [
"com.ivanmurzak",
"extensions.unity",
"org.nuget.com.ivanmurzak",
"org.nuget.microsoft",
"org.nuget.system",
"org.nuget.r3"
"extensions.unity"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ cd Commands
Follow the instruction - [manual package rename](https://github.com/IvanMurzak/Unity-Package-Template/blob/main/Docs/Manual-Package-Rename.md)


#### 3️⃣ Customize `Assets/root/package.json`
#### 3️⃣ Customize `Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json`

- 👉 **Update** `name`
> Sample: `com.github.your_name.package`
Expand All @@ -65,7 +65,7 @@ Follow the instruction - [manual package rename](https://github.com/IvanMurzak/U
<details>
<summary><b>❌ NO</b></summary>

- 👉 **Delete** `Assets/root/Tests` folder
- 👉 **Delete** `Packages/com.ivanmurzak.unity.mcp.particlesystem/Tests` folder
- 👉 **Delete** `.github/workflows` folder

</details>
Expand All @@ -86,7 +86,7 @@ Follow the instruction - [manual package rename](https://github.com/IvanMurzak/U

</details>

#### 4️⃣ Add files into `Assets/root` folder
#### 4️⃣ Add files into `Packages/com.ivanmurzak.unity.mcp.particlesystem` folder

[Unity guidelines](https://docs.unity3d.com/Manual/cus-layout.html) about organizing files into the package root directory

Expand Down Expand Up @@ -121,7 +121,7 @@ Follow the instruction - [manual package rename](https://github.com/IvanMurzak/U
##### Final polishing

- Update the `README.md` file (this file) with information about your package.
- Copy the updated `README.md` to `Assets/root` as well.
- Copy the updated `README.md` to `Packages/com.ivanmurzak.unity.mcp.particlesystem` as well.

> ⚠️ Everything outside of the `root` folder won't be added to your package. But still could be used for testing or showcasing your package at your repository.

Expand Down
8 changes: 0 additions & 8 deletions Unity-Package/Assets/root.meta

This file was deleted.

5 changes: 2 additions & 3 deletions Unity-Tests/2022.3.62f3/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.ivanmurzak.unity.mcp.particlesystem": "file:./../../../Unity-Package/Assets/root",
"com.ivanmurzak.unity.mcp.particlesystem": "file:./../../../Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem",
"com.unity.feature.development": "1.0.1",
"com.unity.test-framework": "1.1.33",
"com.unity.ugui": "1.0.0",
Expand Down Expand Up @@ -40,8 +40,7 @@
"url": "https://package.openupm.com",
"scopes": [
"com.ivanmurzak",
"extensions.unity",
"org.nuget"
"extensions.unity"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion Unity-Tests/2022.3.62f3/Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://package.openupm.com"
},
"com.ivanmurzak.unity.mcp.particlesystem": {
"version": "file:./../../../Unity-Package/Assets/root",
"version": "file:./../../../Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem",
"depth": 0,
"source": "local",
"dependencies": {
Expand Down
5 changes: 2 additions & 3 deletions Unity-Tests/2023.2.22f1/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.ivanmurzak.unity.mcp.particlesystem": "file:./../../../Unity-Package/Assets/root",
"com.ivanmurzak.unity.mcp.particlesystem": "file:./../../../Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem",
"com.unity.feature.development": "1.0.2",
"com.unity.test-framework": "1.3.9",
"com.unity.ugui": "2.0.0",
Expand Down Expand Up @@ -43,8 +43,7 @@
"url": "https://package.openupm.com",
"scopes": [
"com.ivanmurzak",
"extensions.unity",
"org.nuget"
"extensions.unity"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion Unity-Tests/2023.2.22f1/Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://package.openupm.com"
},
"com.ivanmurzak.unity.mcp.particlesystem": {
"version": "file:./../../../Unity-Package/Assets/root",
"version": "file:./../../../Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem",
"depth": 0,
"source": "local",
"dependencies": {
Expand Down
5 changes: 2 additions & 3 deletions Unity-Tests/6000.3.1f1/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.ivanmurzak.unity.mcp.particlesystem": "file:./../../../Unity-Package/Assets/root",
"com.ivanmurzak.unity.mcp.particlesystem": "file:./../../../Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem",
"com.unity.feature.development": "1.0.1",
"com.unity.ide.visualstudio": "2.0.25",
"com.unity.test-framework": "1.6.0",
Expand Down Expand Up @@ -44,8 +44,7 @@
"url": "https://package.openupm.com",
"scopes": [
"com.ivanmurzak",
"extensions.unity",
"org.nuget"
"extensions.unity"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion Unity-Tests/6000.3.1f1/Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://package.openupm.com"
},
"com.ivanmurzak.unity.mcp.particlesystem": {
"version": "file:./../../../Unity-Package/Assets/root",
"version": "file:./../../../Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem",
"depth": 0,
"source": "local",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions commands/bump-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $ErrorActionPreference = "Stop"
# Version file locations (relative to script root)
$VersionFiles = @(
@{
Path = "Unity-Package/Assets/root/package.json"
Path = "Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json"
Pattern = '"version":\s*"[\d\.]+"'
Replace = '"version": "{VERSION}"'
Description = "Unity package version"
Expand Down Expand Up @@ -70,7 +70,7 @@ function Test-SemanticVersion {

function Get-CurrentVersion {
# Extract current version from package.json
$packageJsonPath = "Unity-Package/Assets/root/package.json"
$packageJsonPath = "Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json"
if (-not (Test-Path $packageJsonPath)) {
throw "Could not find package.json at: $packageJsonPath"
}
Expand Down
2 changes: 1 addition & 1 deletion commands/get-version.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$repoRoot = Split-Path -Parent $scriptDir
$packageJsonPath = Join-Path $repoRoot "Unity-Package/Assets/root/package.json"
$packageJsonPath = Join-Path $repoRoot "Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json"
if (Test-Path $packageJsonPath) {
$content = Get-Content $packageJsonPath -Raw
if ($content -match '"version":\s*"([\d\.]+)"') {
Expand Down
2 changes: 1 addition & 1 deletion commands/update-ai-game-developer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $GitHubRepo = "IvanMurzak/Unity-MCP"

# Files to update
$TargetFiles = @(
"Unity-Package/Assets/root/package.json",
"Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json",
"Unity-Package/Packages/manifest.json"
)

Expand Down
2 changes: 1 addition & 1 deletion commands/use-local-mcp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Push-Location $repoRoot
$ErrorActionPreference = "Stop"
$PackageName = "com.ivanmurzak.unity.mcp"
$ManifestPath = "Unity-Package/Packages/manifest.json"
$PackageJsonPath = "Unity-Package/Assets/root/package.json"
$PackageJsonPath = "Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json"
$LocalFilePath = "file:./../../../../Unity-MCP/Unity-MCP-Plugin/Assets/root"

function Write-ColorText {
Expand Down
2 changes: 1 addition & 1 deletion docs/Deploy-GitHub.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GitHub public repository could be used as a host for your package and directly i

## Deploy

1. Increment package version in the file `Assets/root/package.json`. It has `version` property.
1. Increment package version in the file `Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json`. It has `version` property.
> Any further updates should be done by incrementing package version and making another GitHub release.
2. Create GitHub Release
1. Go to your GitHub repository
Expand Down
4 changes: 2 additions & 2 deletions docs/Deploy-OpenUPM.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ OpenUPM is a registry of package made for Unity. It takes package sources from G

### Do each update

⚠️ Make sure you done editing `package.json` and files in `Assets/root` folder. Because it is going to be public with no ability to discard it.
⚠️ Make sure you done editing `package.json` and files in `Packages/com.ivanmurzak.unity.mcp.particlesystem` folder. Because it is going to be public with no ability to discard it.

1. Increment package version in the file `Assets/root/package.json`. It has `version` property.
1. Increment package version in the file `Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json`. It has `version` property.
> Any further updates should be done with incrementing package version and making another GitHub release.
> Versions lower than `1.0.0` is represented in Unity as "preview".
2. Create GitHub Release
Expand Down
2 changes: 1 addition & 1 deletion docs/Deploy-npmjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ npm adduser

### Deploy

⚠️ Make sure you done editing `package.json` and files in `Assets/root` folder. Because it is going to be public with no ability to discard it.
⚠️ Make sure you done editing `package.json` and files in `Packages/com.ivanmurzak.unity.mcp.particlesystem` folder. Because it is going to be public with no ability to discard it.

1. Increment `version` in `package.json` file
> Any further updates should be done with incrementing package version.
Expand Down
8 changes: 4 additions & 4 deletions docs/Manual-Package-Rename.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Manual `Package` rename

#### 1️⃣ Customize `Assets/root/package.json`
#### 1️⃣ Customize `Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json`

- 👉 **Update** `name`
> Sample: `com.github.your_name.package`
Expand All @@ -14,7 +14,7 @@
<details>
<summary><b>❌ NO - click</b></summary>

- 👉 **Delete** `Assets/root/Tests` folder
- 👉 **Delete** `Packages/com.ivanmurzak.unity.mcp.particlesystem/Tests` folder
- 👉 **Delete** `.github/workflows` folder

</details>
Expand All @@ -25,8 +25,8 @@
- 👉 **Repeat** these actions for these files.

- Update the files:
- `Assets/root/Tests/Base/Package.Editor.Tests.asmdef`
- `Assets/root/Tests/Base/Package.Tests.asmdef`
- `Packages/com.ivanmurzak.unity.mcp.particlesystem/Tests/Base/Package.Editor.Tests.asmdef`
- `Packages/com.ivanmurzak.unity.mcp.particlesystem/Tests/Base/Package.Tests.asmdef`

- Apply these actions to files above:
- 👉 **Rename** the `Package` part of the file name
Expand Down
4 changes: 2 additions & 2 deletions docs/claude/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```
Unity-AI-ParticleSystem/
├── Unity-Package/ # Main Unity project containing the UPM package
│ └── Assets/root/ # The actual package contents (published to OpenUPM)
│ └── Packages/com.ivanmurzak.unity.mcp.particlesystem/ # The actual package contents (published to OpenUPM)
│ ├── Editor/Scripts/
│ │ ├── Tools/ # MCP tool implementations (partial classes)
│ │ └── Data/ # Response/data models
Expand Down Expand Up @@ -41,7 +41,7 @@ The package depends on `com.ivanmurzak.unity.mcp` (the Unity-MCP platform). To u

## Tests

Tests are Unity NUnit tests under `Unity-Package/Assets/root/Tests/Editor/`. They use `[UnityTest]` (coroutines) and inherit from `BaseTest`, which provides:
Tests are Unity NUnit tests under `Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/Tests/Editor/`. They use `[UnityTest]` (coroutines) and inherit from `BaseTest`, which provides:
- `CreateGameObjectWithParticleSystem(name)` — creates a test GameObject with a ParticleSystem
- `RunToolAllowWarnings(toolName, json)` — invokes a tool via JSON and asserts no errors

Expand Down
2 changes: 1 addition & 1 deletion docs/claude/ci.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CI/CD

**`release.yml`** — triggers on push to `main`:
1. Reads version from `Unity-Package/Assets/root/package.json`
1. Reads version from `Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json`
2. Skips if git tag for that version already exists
3. Builds the `.unitypackage` installer via `com.IvanMurzak.Unity.MCP.ParticleSystem.Installer.PackageExporter.ExportPackage`
4. Runs Unity tests (editmode, playmode, standalone) across Unity 2022.3.62f3, 2023.2.22f1, and 6000.3.1f1
Expand Down
6 changes: 3 additions & 3 deletions docs/claude/release.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Version Management

Version is tracked in `Unity-Package/Assets/root/package.json`. To bump the version across all files (package.json, Installer constant, README download URLs):
Version is tracked in `Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json`. To bump the version across all files (package.json, Installer constant, README download URLs):
```powershell
.\commands\bump-version.ps1 -NewVersion "1.0.23"
# Preview only:
.\commands\bump-version.ps1 -NewVersion "1.0.23" -WhatIf
```

Files updated by `bump-version.ps1`:
- `Unity-Package/Assets/root/package.json`
- `Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/package.json`
- `Installer/Assets/com.IvanMurzak/AI Particle System Installer/Installer.cs`
- `Unity-Package/Assets/root/README.md`
- `Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/README.md`
- `README.md`
2 changes: 1 addition & 1 deletion docs/openupm-signing.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ References:
The signing step is implemented as the `build-signed-upm-package` job in
[`.github/workflows/release.yml`](../.github/workflows/release.yml). It runs in
parallel with tests and builds on every version-bump release commit, packs the
package at `Unity-Package/Assets/root/` with Unity's UPM CLI, verifies the
package at `Unity-Package/Packages/com.ivanmurzak.unity.mcp.particlesystem/` with Unity's UPM CLI, verifies the
resulting archive contains `package/.attestation.p7m` and that its basename begins
with `com.ivanmurzak.unity.mcp.particlesystem-`, and uploads the signed `.tgz` as
a `signed-upm-package` workflow artifact.
Expand Down
Loading