Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 62ce9f3

Browse files
committed
feat(InEditor): restore full functionality
1 parent f3a1d97 commit 62ce9f3

File tree

78 files changed

+2187
-1456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2187
-1456
lines changed

.github/workflows/ci.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: ⚙ Build and Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: ⚙ Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: Build unitypackage
15+
run: |
16+
echo Assets/extOSC.InEditor.meta >> metaList
17+
find Assets/extOSC.InEditor -name \*.meta >> metaList
18+
- uses: pCYSl5EDgo/create-unitypackage@master
19+
with:
20+
package-path: extOSC.InEditor.unitypackage
21+
include-files: metaList
22+
project-folder: ./
23+
- name: Semantic release
24+
id: semantic
25+
uses: cycjimmy/semantic-release-action@v2
26+
with:
27+
extra_plugins: |
28+
@semantic-release/changelog
29+
@semantic-release/git
30+
branch: master
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
- name: Update upm branch
34+
run: |
35+
echo '>>> Start'
36+
git log -1
37+
38+
mkdir Temp
39+
cp README.md Temp/README.md
40+
cp CHANGELOG.md Temp/CHANGELOG.md
41+
cp LICENSE Temp/LICENSE
42+
43+
echo '>>> Delete local upm branch'
44+
git branch -d upm &> /dev/null || echo upm branch not found
45+
46+
echo
47+
echo '>>> Split upm branch'
48+
git subtree split -P "$PKG_ROOT" -b upm
49+
50+
echo
51+
echo '>>> Checkout upm branch'
52+
git checkout upm
53+
54+
cp Temp/README.md README.md
55+
git add README.md
56+
57+
cp Temp/CHANGELOG.md CHANGELOG.md
58+
git add CHANGELOG.md
59+
60+
cp Temp/LICENSE LICENSE
61+
git add LICENSE
62+
63+
if [[ -d "Examples" ]]; then
64+
echo
65+
echo '>>> Examples move to Examples~'
66+
git mv Examples Examples~
67+
rm -f Examples.meta
68+
fi
69+
70+
git config --global user.name 'github-bot'
71+
git config --global user.email '[email protected]'
72+
git commit -am "$MSG"
73+
74+
echo
75+
echo '>>> Force overwrite remote upm branch'
76+
git push -f -u origin upm
77+
env:
78+
PKG_ROOT: Assets/extOSC.InEditor
79+
MSG: Finalize v${{ steps.semantic.outputs.new_release_version }} commit.
80+
- name: Create upm git tag
81+
if: steps.semantic.outputs.new_release_published == 'true'
82+
run: |
83+
git tag $TAG upm
84+
git push origin --tags
85+
env:
86+
TAG: upm/v${{ steps.semantic.outputs.new_release_version }}

.gitignore

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# extEditorOSC .gitignore file - 2017
1+
# extOSC.InEditor .gitignore file 2021
22

33
# -------
44
# FOLDERS
@@ -11,9 +11,16 @@
1111
/[Oo]bj/
1212
/[Bb]uild/
1313
/[Bb]uilds/
14-
/Assets/extOSC*
14+
/[Ll]ogs/
15+
/[Uu]serSettings/
16+
/Assets/AssetStoreTools*
1517
AssetBundles/
1618

19+
# TextMeshPro Essentials
20+
Assets/TextMesh Pro.meta
21+
Assets/TextMesh Pro/
22+
extOSC/
23+
1724
# Visual Studio
1825

1926
ExportedObj/
@@ -24,8 +31,6 @@ ExportedObj/
2431

2532
# Unity
2633

27-
editor.configs.json
28-
2934
Assembly-CSharp-Editor-vs.csproj
3035
Assembly-CSharp-Editor.csproj
3136
Assembly-CSharp-firstpass-vs.csproj
@@ -47,6 +52,7 @@ Assembly-CSharp.csproj
4752
.vscode/
4853
.vs/
4954
.idea/
55+
.vsconfig
5056

5157
# OS generated
5258

@@ -58,5 +64,4 @@ Assembly-CSharp.csproj
5864
Icon?
5965
ehthumbs.db
6066
Thumbs.db
61-
Thumbs.db.meta
62-
67+
Thumbs.db.meta

.releaserc.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"tagFormat": "v${version}",
3+
"plugins": [
4+
["@semantic-release/commit-analyzer", { "preset": "angular" }],
5+
"@semantic-release/release-notes-generator",
6+
["@semantic-release/changelog", { "preset": "angular" }],
7+
["@semantic-release/npm", { "npmPublish": false, "pkgRoot": "Assets/extOSC.InEditor" }],
8+
["@semantic-release/git", {
9+
"assets": ["Assets/extOSC.InEditor/package.json", "CHANGELOG.md"],
10+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
11+
}],
12+
["@semantic-release/github", {
13+
"assets": [
14+
{"path": "extOSC.InEditor.unitypackage", "label": "extOSC.InEditor v${nextRelease.version}"}
15+
]
16+
}]
17+
]
18+
}

Assets/extEditorOSC/Scripts/Editor/OSCEditorComponentAttribute.cs

-51
This file was deleted.

Assets/extEditorOSC/Scripts/Editor/OSCEditorEnums.cs

-15
This file was deleted.

Assets/extEditorOSC/Scripts/Editor/OSCEditorEnums.cs.meta

-13
This file was deleted.

0 commit comments

Comments
 (0)