Skip to content

Commit

Permalink
ci(thunderstore): ⚡ add thunderstore release (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenira committed Dec 21, 2023
1 parent 67d2ebb commit 39d863e
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 19 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
name: plugin
- name: Copy Files
run: |
mkdir -p ./artifact/Techtonica/BepInEx/plugins/techtonica_vr/assets && mkdir -p ./artifact/Techtonica/Techtonica_Data
cp techtonica_vr.dll ./artifact/Techtonica/BepInEx/plugins
cp -r ./libs/* ./artifact/Techtonica/Techtonica_Data/
cp -r ./unity/AssetBundles/StandaloneWindows/* ./artifact/Techtonica/BepInEx/plugins/techtonica_vr/assets
cp {README.adoc,CHANGELOG.md,LICENSE} ./artifact/
mkdir -p ./artifact/BepInEx/plugins/techtonica_vr/assets && mkdir -p ./artifact/Techtonica_Data
cp techtonica_vr.dll ./artifact/BepInEx/plugins
cp -r ./libs/* ./artifact/Techtonica_Data/
cp -r ./unity/AssetBundles/StandaloneWindows/* ./artifact/BepInEx/plugins/techtonica_vr/assets
cp {README.adoc,CHANGELOG.md,LICENSE,manifest.json,icon.png} ./artifact/
- name: Upload Release Asset Artifact
uses: actions/upload-artifact@v2
with:
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,25 @@ jobs:
- name: Zip release artifact
if: ${{ steps.release.outputs.release_created }}
run: |
mkdir ./artifact/
unzip techtonica_vr.zip -d ./artifact/
unzip Tobey.UnityAudio.zip -d ./artifact/TechtonicaVR/
zip -r techtonica_vr-${{ steps.release.outputs.tag_name }}.zip ./artifact/*
unzip Tobey.UnityAudio.zip -d ./artifact/
cd artifact && zip -r techtonica_vr-${{ steps.release.outputs.tag_name }}.zip ./ && cd ..
mv artifact/techtonica_vr-${{ steps.release.outputs.tag_name }}.zip .
- name: Upload release artifact
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ steps.release.outputs.tag }} techtonica_vr-${{ steps.release.outputs.tag_name }}.zip
- name: Upload to Thunderstore
uses: GreenTF/upload-thunderstore-package@v4.1
if: ${{ steps.release.outputs.release_created }}
with:
namespace: "3_141"
community: Techtonica
name: TechtonicaVR
description: VR mod for Techtonica
categories: |
mods
file: techtonica_vr-${{ steps.release.outputs.tag_name }}.zip
version: "${{ steps.release.outputs.major }}.${{ steps.release.outputs.major }}.${{ steps.release.outputs.patch }}"
token: ${{ secrets.THUNDERSTORE_KEY }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/plugin/obj/
/plugin/bin/
# /libs/
/strip-dll/
/strip-dll/
/decompile
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"readme",
"comfort",
"sound",
"deps"
"deps",
"thunderstore"
]
}
}
31 changes: 25 additions & 6 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,36 @@ v.0.1.0
:toclevels: 2
:sectnums:
:toc: left
ifdef::env-github[]
:caution-caption: :fire:
endif::[]
:icons: font
:source-highlighter: highlightjs
:game-version: 0.2.0f
:repo: Xenira/TechtonicaVR

image:https://img.shields.io/github/v/release/{repo}[GitHub release (with filter)]
image:https://img.shields.io/github/release-date/{repo}[GitHub Release Date - Published_At]
image:https://img.shields.io/github/downloads/{repo}/total[GitHub downloads all releases]
image:https://img.shields.io/github/actions/workflow/status/{repo}/dotnet.yml[GitHub Workflow Status (with event)]
image:https://img.shields.io/github/issues/{repo}[GitHub issues]
image:https://img.shields.io/github/issues-pr/{repo}[GitHub pull requests]
image:https://img.shields.io/github/license/{repo}[License]

++++
<p align="center">
<img src="icon.png" width="256" />
</p>
++++


This is a mod for the game https://store.steampowered.com/app/1457320/Techtonica/[Techtonica] that adds VR support.

CAUTION: This mod is still in early development and *will* contain bugs. Use at your own risk. Only tested with the Valve Index / Pimax Crystal and Knuckles controllers.

== Prerequisites

* Version {game-version} of the game. As the game is still in early access, this mod may not work with future versions of the game. If you encounter any issues, please create an https://github.com/xenira/techtonicavr/issues[Issue].
* Version {game-version} of the game. As the game is still in early access, this mod may not work with future versions of the game. If you encounter any issues, please create an https://github.com/{repo}/issues[Issue].
* https://github.com/BepInEx/BepInEx[BepInEx] version BepInEx Version

== Setup
Expand All @@ -24,9 +43,9 @@ CAUTION: This mod is still in early development and *will* contain bugs. Use at
. Run the game once. BepInEx should be installed automatically.

=== VR Mod
. Download the latest release of this mod from the https://github.com/xenira/techtonicavr/releases[Releases] page.
. Download the latest release of this mod from the https://github.com/{repo}/releases[Releases] page.
. Extract the downloaded archive.
. Copy the content from the `Techtonica` folder in the extracted files to the `Techtonica` folder in `steamapps/common` directory.
. Copy the `BepInEx` and `Techtonica_Data` folders to the `Techtonica` folder in `steamapps/common` directory.
. Run the game. The mod should be loaded automatically by BepInEx.

=== Disabling the Mod
Expand All @@ -46,7 +65,8 @@ While the mod is in a playable state, it is still in early development. Some fea
=== Working
- Rendering of the game world with 6DOF Tracking
- Tracking of the player's head and hands
- Movement
- Smooth locomotion and turning
- Comfort options (Teleportation, Snap turning, Vignette)
- Basic controller bindings (Although they might not be optimal)
- Controller haptics
- Smooth turning
Expand All @@ -63,7 +83,6 @@ While the mod is in a playable state, it is still in early development. Some fea
- Hand crank using uhhhhh... hands?

=== Known Issues
- Map shows the player looking in the wrong direction.
- Button prompts are not for VR controllers. (#13)
- Haptics are played on both controllers by the game. One improvement would be to play them on the hand that is actually holding the tool.
- The game is locked to 60fps when running in windowed mode. This is based on the refresh rate of your monitor. To unlock the framerate, switch to fullscreen mode. (#10)
Expand All @@ -75,7 +94,7 @@ While the mod is in a playable state, it is still in early development. Some fea

== Troubleshooting

If you encounter any issues while using this mod, please check the BepInEx console for any error messages. You can also report issues on the https://github.com/xenira/techtonicavr/issues[Issues] page of this repository.
If you encounter any issues while using this mod, please check the BepInEx console for any error messages. You can also report issues on the https://github.com/{repo}/issues[Issues] page of this repository.

=== Q&A
[qanda]
Expand Down
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "TechtonicaVR",
"version_number": "0.1.0",
"website_url": "https://github.com/Xenira/TechtonicaVR",
"description": "VR Mod for Techtonica",
"dependencies": []
}
2 changes: 1 addition & 1 deletion plugin/TechtonicaVr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>techtonica_vr</AssemblyName>
<Product>Techtonica VR</Product>
<Version>1.0.0</Version>
<Version>1.0.0</Version> <!-- x-release-please-version -->
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
Expand Down
11 changes: 11 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bump-minor-pre-major": true,
"extra-files": [
"plugin/TechtonicaVr.csproj",
{
"type": "json",
"path": "manifest.json",
"jsonpath": "$.version_number"
}
]
}

0 comments on commit 39d863e

Please sign in to comment.