Skip to content

Commit

Permalink
Fixed Version Check URL being incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
MintLily committed Oct 13, 2024
1 parent b7a06b5 commit 0004e9e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@
</ul>

<h2>Updates</h2>
<b>2024-10-13: v1.0.1</b>
<p>
<ul>
<li>Fixed Version Check URL being incorrect</li>
</ul>
</p>

<b>2024-09-29: v1.0.0</b>
<p>
<ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using VRC.SDK3.Avatars.ScriptableObjects;

public class MintyToggleGenerator : EditorWindow {
private const string Version = "1.0.0";
private const string Version = "1.0.1";
private const string LogPrefix = "[<color=#9fffe3>MintyToggle Generator</color>] ";
private static readonly string ProjectUserAgent = $"MintyToggleGenerator/{Version} Internal UnityWebRequest";
private static bool _updateAvailable;
Expand Down Expand Up @@ -48,7 +48,7 @@ private static void CheckForUpdate() {
Debug.Log(LogPrefix + "Checking for updates...");
var wc = new WebClient();
wc.Headers.Add("User-Agent", ProjectUserAgent);
_newVersionString = wc.DownloadString("https://raw.githubusercontent.com/Minty-Labs/Unity-Tools/main/Animation-Toggle-Generator/Remote/version.txt");
_newVersionString = wc.DownloadString("https://raw.githubusercontent.com/Minty-Labs/Unity-Tools/refs/heads/main/Unity-Animation-Toggle-Generator/Remote/version.txt");
_updateAvailable = _newVersionString != Version;
Debug.Log(LogPrefix + (_updateAvailable ? "Update Available" : "No Update Available"));
wc.Dispose();
Expand Down Expand Up @@ -546,7 +546,7 @@ private void CreateAnimatorLayer(AnimationClip enabledClip, AnimationClip disabl
// Allows you get the current folder that is opened in the project window
private static string GetSelectedPathOrFallback() {
var path = "Assets";
foreach (var obj in Selection.GetFiltered(typeof(Object), SelectionMode.Assets)) {
path = AssetDatabase.GetAssetPath(obj);
if (string.IsNullOrEmpty(path) || !File.Exists(path)) continue;
Expand Down
2 changes: 1 addition & 1 deletion Unity-Animation-Toggle-Generator/Remote/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1

0 comments on commit 0004e9e

Please sign in to comment.