mirror of
https://github.com/MrUnknownDE/vcc-tools.git
synced 2026-05-07 07:26:05 +02:00
Compare commits
2 Commits
2cf94acaa5
..
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| e6c8044349 | |||
| fa98829cbe |
@@ -1,77 +0,0 @@
|
|||||||
name: VCC Release Automation
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "v*" # Startet bei v1.0.2, v1.1.0 etc.
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- name: Checkout Code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Extract Metadata
|
|
||||||
id: metadata
|
|
||||||
run: |
|
|
||||||
VERSION=$(jq -r .version package.json)
|
|
||||||
PKG_NAME=$(jq -r .name package.json)
|
|
||||||
DISPLAY_NAME=$(jq -r .displayName package.json)
|
|
||||||
DESCRIPTION=$(jq -r .description package.json)
|
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
||||||
echo "pkg_name=$PKG_NAME" >> $GITHUB_OUTPUT
|
|
||||||
echo "display_name=$DISPLAY_NAME" >> $GITHUB_OUTPUT
|
|
||||||
echo "description=$DESCRIPTION" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Create VCC Package Zip
|
|
||||||
run: |
|
|
||||||
# Wir packen nur die relevanten Dateien ohne den Repo-Hauptordner
|
|
||||||
zip -r ${{ steps.metadata.outputs.pkg_name }}-${{ github.ref_name }}.zip package.json README.md Editor/ Editor.meta package.json.meta README.md.meta
|
|
||||||
|
|
||||||
- name: Upload GitHub Release Asset
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
files: ${{ steps.metadata.outputs.pkg_name }}-${{ github.ref_name }}.zip
|
|
||||||
generate_release_notes: true
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- name: Update VCC Index
|
|
||||||
run: |
|
|
||||||
# Wechsel zum gh-pages Branch (oder erstelle ihn, falls er fehlt)
|
|
||||||
git config --global user.name "github-actions[bot]"
|
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
|
|
||||||
git fetch origin gh-pages || git checkout --orphan gh-pages
|
|
||||||
git checkout gh-pages || git checkout -b gh-pages
|
|
||||||
|
|
||||||
# Falls die index.json noch nicht existiert, Basis-Struktur anlegen
|
|
||||||
if [ ! -f index.json ]; then
|
|
||||||
echo '{"name":"mrunknownde VCC Repo","id":"de.mrunknownde.vccrepo","url":"https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/index.json","author":"mrunknownde","packages":{}}' > index.json
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Neue Version in die index.json injizieren
|
|
||||||
ZIP_URL="https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/${{ steps.metadata.outputs.pkg_name }}-${{ github.ref_name }}.zip"
|
|
||||||
|
|
||||||
jq --arg ver "${{ steps.metadata.outputs.version }}" \
|
|
||||||
--arg name "${{ steps.metadata.outputs.pkg_name }}" \
|
|
||||||
--arg disp "${{ steps.metadata.outputs.display_name }}" \
|
|
||||||
--arg desc "${{ steps.metadata.outputs.description }}" \
|
|
||||||
--arg url "$ZIP_URL" \
|
|
||||||
'.packages[$name].versions[$ver] = {
|
|
||||||
"name": $name,
|
|
||||||
"version": $ver,
|
|
||||||
"displayName": $disp,
|
|
||||||
"description": $desc,
|
|
||||||
"unity": "2022.3",
|
|
||||||
"url": $url
|
|
||||||
}' index.json > temp.json && mv temp.json index.json
|
|
||||||
|
|
||||||
git add index.json
|
|
||||||
git commit -m "Add version ${{ github.ref_name }} to VCC index"
|
|
||||||
git push origin gh-pages
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "de.mrunknownde.gittool.Editor",
|
|
||||||
"rootNamespace": "",
|
|
||||||
"references": [],
|
|
||||||
"includePlatforms": [
|
|
||||||
"Editor"
|
|
||||||
],
|
|
||||||
"excludePlatforms": [],
|
|
||||||
"allowUnsafeCode": false,
|
|
||||||
"overrideReferences": false,
|
|
||||||
"precompiledReferences": [],
|
|
||||||
"autoReferenced": true,
|
|
||||||
"defineConstraints": [],
|
|
||||||
"versionDefines": [],
|
|
||||||
"noEngineReferences": false
|
|
||||||
}
|
|
||||||
@@ -17,7 +17,7 @@ You can add this tool as a custom package directly into your VCC.
|
|||||||
1. Open the VRChat Creator Companion.
|
1. Open the VRChat Creator Companion.
|
||||||
2. Navigate to **Settings** -> **Packages**.
|
2. Navigate to **Settings** -> **Packages**.
|
||||||
3. Click on **Add Repository**.
|
3. Click on **Add Repository**.
|
||||||
4. Enter your custom repo URL: `https://vcc.mrunk.de/index.json`
|
4. Enter your custom repo URL: `[YOUR_INDEX_JSON_URL_HERE]`
|
||||||
5. In your project views, under "Manage Project", the **VRChat Git Control Tool** will now appear. Simply click the plus icon to add it.
|
5. In your project views, under "Manage Project", the **VRChat Git Control Tool** will now appear. Simply click the plus icon to add it.
|
||||||
|
|
||||||
## 🛠️ Manual Installation
|
## 🛠️ Manual Installation
|
||||||
|
|||||||
-52
@@ -1,52 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "MrUnknownDE's VCC Tools",
|
|
||||||
"id": "de.mrunknownde.vcc-tools",
|
|
||||||
"url": "https://vcc.mrunk.de/index.json",
|
|
||||||
"author": "MrUnknownDE",
|
|
||||||
"packages": {
|
|
||||||
"de.mrunknownde.vcc-tools": {
|
|
||||||
"versions": {
|
|
||||||
"1.0.4": {
|
|
||||||
"name": "de.mrunknownde.vcc-tools",
|
|
||||||
"version": "1.0.4",
|
|
||||||
"displayName": "MrUnknownDE's VRChat Tools",
|
|
||||||
"url": "https://github.com/MrUnknownDE/vcc-tools/archive/refs/tags/v1.0.4.zip",
|
|
||||||
"unity": "2022.3",
|
|
||||||
"description": "A lightweight, integrated Git panel for Unity."
|
|
||||||
},
|
|
||||||
"1.0.3": {
|
|
||||||
"name": "de.mrunknownde.vcc-tools",
|
|
||||||
"version": "1.0.3",
|
|
||||||
"displayName": "MrUnknownDE's VRChat Tools",
|
|
||||||
"url": "https://github.com/MrUnknownDE/vcc-tools/archive/refs/tags/v1.0.3.zip",
|
|
||||||
"unity": "2022.3",
|
|
||||||
"description": "A lightweight, integrated Git panel for Unity."
|
|
||||||
},
|
|
||||||
"1.0.2": {
|
|
||||||
"name": "de.mrunknownde.vcc-tools",
|
|
||||||
"version": "1.0.2",
|
|
||||||
"displayName": "MrUnknownDE's VRChat Tools",
|
|
||||||
"url": "https://github.com/MrUnknownDE/vcc-tools/archive/refs/tags/v1.0.2.zip",
|
|
||||||
"unity": "2022.3",
|
|
||||||
"description": "A lightweight, integrated Git panel for Unity."
|
|
||||||
},
|
|
||||||
"1.0.1": {
|
|
||||||
"name": "de.mrunknownde.vcc-tools",
|
|
||||||
"version": "1.0.1",
|
|
||||||
"displayName": "MrUnknownDE'sVRChat Tools",
|
|
||||||
"url": "https://github.com/MrUnknownDE/vcc-tools/archive/refs/tags/v1.0.1.zip",
|
|
||||||
"unity": "2022.3",
|
|
||||||
"description": "A lightweight, integrated Git panel for Unity."
|
|
||||||
},
|
|
||||||
"1.0.0": {
|
|
||||||
"name": "de.mrunknownde.vcc-tools",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"displayName": "MrUnknownDE's VRChat Tools",
|
|
||||||
"description": "A lightweight, integrated Git panel for Unity.",
|
|
||||||
"unity": "2022.3",
|
|
||||||
"url": "https://github.com/MrUnknownDE/vcc-tools/releases/download/v1.0.4/de.mrunknownde.vcc-tools-v1.0.4.zip"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+4
-4
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "de.mrunknownde.vcc-tools",
|
"name": "de.mrunknownde.gittool",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"displayName": "MrUnknownDE's VRChat Tools",
|
"displayName": "VRChat Git Control Tool",
|
||||||
"description": "A lightweight, integrated Git panel for Unity.",
|
"description": "A lightweight, integrated Git panel for Unity. Ideal for VRChat World/Avatar Creators to easily push commits directly from the editor to Gitea/GitHub/GitLab and other Git hosting services.",
|
||||||
"unity": "2022.3",
|
"unity": "2022.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "MrUnknownDE"
|
"name": "mrunknownde"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"vpmDependencies": {}
|
"vpmDependencies": {}
|
||||||
|
|||||||
Reference in New Issue
Block a user