unity_scene_repacker 2.4.0__tar.gz → 3.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/.github/workflows/release.yml +23 -43
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/Cargo.lock +572 -406
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/Cargo.toml +17 -10
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/PKG-INFO +2 -2
- unity_scene_repacker-3.1.0/README.md +327 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/cli/Cargo.toml +6 -5
- unity_scene_repacker-3.1.0/cli/src/check_scripts.rs +194 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/cli/src/lib.rs +142 -75
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/cli/src/locate.rs +17 -6
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/cli/src/main.rs +1 -1
- unity_scene_repacker-3.1.0/cli/src/py.rs +13 -0
- unity_scene_repacker-3.1.0/docs/CHANGELOG.md +38 -0
- unity_scene_repacker-3.1.0/examples/export_fsm.rs +109 -0
- unity_scene_repacker-3.1.0/examples/export_monobehaviour_typetrees.rs +176 -0
- unity_scene_repacker-3.1.0/examples/export_ns_monsters.rs +113 -0
- unity_scene_repacker-3.1.0/examples/hk.rs +76 -0
- unity_scene_repacker-3.1.0/examples/script_stats.rs +53 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/justfile +14 -11
- unity_scene_repacker-3.1.0/objects/hk-in-silksong.jsonc +4 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/pyproject.toml +2 -3
- unity_scene_repacker-3.1.0/src/dependency_addressables.rs +390 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/src/lib.rs +238 -193
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/src/merge_serialized.rs +57 -19
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/src/monobehaviour_typetree_export.rs +33 -9
- unity_scene_repacker-3.1.0/src/script_check.rs +247 -0
- unity_scene_repacker-2.4.0/README.md +0 -173
- unity_scene_repacker-2.4.0/cli/src/py.rs +0 -21
- unity_scene_repacker-2.4.0/data/purelib/unity_scene_repacker.libs/.gitkeep +0 -0
- unity_scene_repacker-2.4.0/examples/export_monobehaviour_typetrees.rs +0 -230
- unity_scene_repacker-2.4.0/src/env.rs +0 -229
- unity_scene_repacker-2.4.0/src/game_files.rs +0 -99
- unity_scene_repacker-2.4.0/src/prune.rs +0 -139
- unity_scene_repacker-2.4.0/src/reachable.rs +0 -55
- unity_scene_repacker-2.4.0/src/scene_lookup.rs +0 -83
- unity_scene_repacker-2.4.0/src/trace_pptr.rs +0 -207
- unity_scene_repacker-2.4.0/src/typetree_generator_cache.rs +0 -52
- unity_scene_repacker-2.4.0/src/unity/mod.rs +0 -3
- unity_scene_repacker-2.4.0/src/unity/types/utils.rs +0 -134
- unity_scene_repacker-2.4.0/src/unity/types.rs +0 -150
- unity_scene_repacker-2.4.0/typetree-generator-api/Cargo.toml +0 -8
- unity_scene_repacker-2.4.0/typetree-generator-api/bindings.h +0 -32
- unity_scene_repacker-2.4.0/typetree-generator-api/src/generated.rs +0 -187
- unity_scene_repacker-2.4.0/typetree-generator-api/src/lib.rs +0 -315
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/.clang-format +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/.gitignore +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/LICENSE.md +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/cli/src/completion.rs +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/cli/src/logger.rs +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/cli/src/utils.rs +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/docs/demo-cast.svg +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/docs/demo.cast +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/docs/release.md +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/objects/hk-enemies.jsonc +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/objects/hk-representative.jsonc +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/objects/ns-by-type.json +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/objects/ns-monsters.json +0 -0
- {unity_scene_repacker-2.4.0 → unity_scene_repacker-3.1.0}/rustfmt.toml +0 -0
|
@@ -39,47 +39,23 @@ jobs:
|
|
|
39
39
|
rid: win-x64
|
|
40
40
|
manylinux: ""
|
|
41
41
|
# MacOS
|
|
42
|
-
- runner: macos-
|
|
42
|
+
- runner: macos-15-intel
|
|
43
43
|
target: x86_64
|
|
44
44
|
rid: osx-x64
|
|
45
45
|
manylinux: ""
|
|
46
|
-
- runner: macos-
|
|
46
|
+
- runner: macos-15
|
|
47
47
|
target: aarch64
|
|
48
48
|
rid: osx-arm64
|
|
49
49
|
manylinux: ""
|
|
50
50
|
steps:
|
|
51
|
-
- uses: actions/checkout@
|
|
52
|
-
- name: Install uv
|
|
53
|
-
uses: astral-sh/setup-uv@v6
|
|
54
|
-
- uses: actions/setup-dotnet@v4
|
|
55
|
-
with:
|
|
56
|
-
dotnet-version: "9.x"
|
|
57
|
-
|
|
58
|
-
- name: Clone TypeTreeGeneratorAPI
|
|
59
|
-
uses: actions/checkout@v4
|
|
60
|
-
with:
|
|
61
|
-
repository: jakobhellermann/TypeTreeGeneratorAPI
|
|
62
|
-
submodules: true
|
|
63
|
-
ref: wip
|
|
64
|
-
path: TypeTreeGeneratorAPI
|
|
65
|
-
- name: Publish TypeTreeGeneratorAPI with dotnet
|
|
66
|
-
run: dotnet publish TypeTreeGeneratorAPI/TypeTreeGeneratorAPI -o out --runtime ${{ matrix.rid }} -p:EnableAssetRipper=false -p:EnableAssetStudio=false -p:EnableAssetsTools=true -p:EnableIL2CPP=false
|
|
67
|
-
- name: Copy
|
|
68
|
-
shell: bash
|
|
69
|
-
run: |
|
|
70
|
-
if [[ "${{ runner.os }}" == "Windows" ]]; then
|
|
71
|
-
cp out/TypeTreeGeneratorAPI.dll data/purelib/unity_scene_repacker.libs
|
|
72
|
-
elif [[ "${{ runner.os }}" == "macOS" ]]; then
|
|
73
|
-
cp out/libTypeTreeGeneratorAPI.dylib data/purelib/unity_scene_repacker.libs
|
|
74
|
-
else
|
|
75
|
-
cp out/libTypeTreeGeneratorAPI.so data/purelib/unity_scene_repacker.libs
|
|
76
|
-
fi
|
|
51
|
+
- uses: actions/checkout@v7
|
|
77
52
|
|
|
78
53
|
- name: Build bindings
|
|
79
54
|
run: cargo build --release -p bindings
|
|
80
55
|
- name: Copy artifacts
|
|
81
56
|
shell: bash # todo: replace this with --artifact-dir when finally stable
|
|
82
57
|
run: |
|
|
58
|
+
mkdir out
|
|
83
59
|
if [[ "${{ runner.os }}" == "Windows" ]]; then
|
|
84
60
|
cp target/release/unityscenerepacker.dll out/unityscenerepacker.dll
|
|
85
61
|
elif [[ "${{ runner.os }}" == "macOS" ]]; then
|
|
@@ -89,13 +65,13 @@ jobs:
|
|
|
89
65
|
fi
|
|
90
66
|
|
|
91
67
|
- name: Upload bindings
|
|
92
|
-
uses: actions/upload-artifact@
|
|
68
|
+
uses: actions/upload-artifact@v7
|
|
93
69
|
with:
|
|
94
70
|
name: bindings-${{ matrix.rid }}
|
|
95
71
|
path: out/*
|
|
96
72
|
|
|
97
73
|
- name: Build cli wheels
|
|
98
|
-
uses:
|
|
74
|
+
uses: PyO3/maturin-action@v1
|
|
99
75
|
with:
|
|
100
76
|
target: ${{ matrix.target }}
|
|
101
77
|
args: --release --out dist
|
|
@@ -103,7 +79,7 @@ jobs:
|
|
|
103
79
|
manylinux: ${{ matrix.manylinux }}
|
|
104
80
|
|
|
105
81
|
- name: Upload wheels
|
|
106
|
-
uses: actions/upload-artifact@
|
|
82
|
+
uses: actions/upload-artifact@v7
|
|
107
83
|
with:
|
|
108
84
|
name: wheels-${{ matrix.rid }}
|
|
109
85
|
path: dist
|
|
@@ -111,14 +87,14 @@ jobs:
|
|
|
111
87
|
sdist:
|
|
112
88
|
runs-on: ubuntu-latest
|
|
113
89
|
steps:
|
|
114
|
-
- uses: actions/checkout@
|
|
90
|
+
- uses: actions/checkout@v7
|
|
115
91
|
- name: Build sdist
|
|
116
92
|
uses: PyO3/maturin-action@v1
|
|
117
93
|
with:
|
|
118
94
|
command: sdist
|
|
119
95
|
args: --out dist
|
|
120
96
|
- name: Upload sdist
|
|
121
|
-
uses: actions/upload-artifact@
|
|
97
|
+
uses: actions/upload-artifact@v7
|
|
122
98
|
with:
|
|
123
99
|
name: wheels-sdist
|
|
124
100
|
path: dist
|
|
@@ -126,15 +102,18 @@ jobs:
|
|
|
126
102
|
nuget:
|
|
127
103
|
name: Build & Publish nuget package
|
|
128
104
|
runs-on: ubuntu-latest
|
|
105
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
129
106
|
needs: build
|
|
107
|
+
permissions:
|
|
108
|
+
id-token: write
|
|
130
109
|
|
|
131
110
|
steps:
|
|
132
|
-
- uses: actions/checkout@
|
|
111
|
+
- uses: actions/checkout@v7
|
|
133
112
|
- run: sudo apt install mono-devel # https://github.com/NuGet/setup-nuget/issues/168
|
|
134
|
-
- uses: nuget/setup-nuget@
|
|
113
|
+
- uses: nuget/setup-nuget@v4
|
|
135
114
|
|
|
136
115
|
- name: Download artifacts
|
|
137
|
-
uses: actions/download-artifact@
|
|
116
|
+
uses: actions/download-artifact@v8
|
|
138
117
|
with:
|
|
139
118
|
pattern: bindings-*
|
|
140
119
|
path: out
|
|
@@ -145,10 +124,13 @@ jobs:
|
|
|
145
124
|
- name: Pack NuGet package
|
|
146
125
|
run: nuget pack ./bindings/nuget/unityscenerepacker.nuspec
|
|
147
126
|
|
|
127
|
+
- name: NuGet login
|
|
128
|
+
id: nuget-login
|
|
129
|
+
uses: NuGet/login@v1
|
|
130
|
+
with:
|
|
131
|
+
user: ${{ secrets.NUGET_USER }}
|
|
148
132
|
- name: Push to NuGet
|
|
149
|
-
|
|
150
|
-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
|
|
151
|
-
run: nuget push unityscenerepacker.*.nupkg -SkipDuplicate -Source https://api.nuget.org/v3/index.json -ApiKey $NUGET_API_KEY
|
|
133
|
+
run: dotnet nuget push unityscenerepacker.*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }}
|
|
152
134
|
|
|
153
135
|
release:
|
|
154
136
|
name: Build & Publish PyPI wheels
|
|
@@ -163,18 +145,16 @@ jobs:
|
|
|
163
145
|
# Used to generate artifact attestation
|
|
164
146
|
attestations: write
|
|
165
147
|
steps:
|
|
166
|
-
- uses: actions/download-artifact@
|
|
148
|
+
- uses: actions/download-artifact@v8
|
|
167
149
|
with:
|
|
168
150
|
pattern: wheels-*
|
|
169
151
|
- name: Generate artifact attestation
|
|
170
|
-
uses: actions/attest-build-provenance@
|
|
152
|
+
uses: actions/attest-build-provenance@v4
|
|
171
153
|
with:
|
|
172
154
|
subject-path: "wheels-*/*"
|
|
173
155
|
- name: Publish to PyPI
|
|
174
156
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
175
157
|
uses: PyO3/maturin-action@v1
|
|
176
|
-
env:
|
|
177
|
-
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
178
158
|
with:
|
|
179
159
|
command: upload
|
|
180
160
|
args: --non-interactive --skip-existing wheels-*/*
|