app.hypergames.hypersdk 1.1.8 → 1.1.9
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.1.9](https://github.com/mvmhyper/hyper-sdk/compare/v1.1.8...v1.1.9) (2025-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* expand HyperSDK installer asset copy ([100bc92](https://github.com/mvmhyper/hyper-sdk/commit/100bc92434498683e885f2d852263b5c1b15edf1))
|
|
7
|
+
|
|
1
8
|
## [1.1.8](https://github.com/mvmhyper/hyper-sdk/compare/v1.1.7...v1.1.8) (2025-11-25)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -16,6 +16,10 @@ namespace Hyper.Editor
|
|
|
16
16
|
private const string HyperLoaderSceneDestination = "Assets/HyperSDK/Scenes/HyperLoader.unity";
|
|
17
17
|
private const string WebGLTemplateRelativePath = "WebGLTemplates/HyperLoader";
|
|
18
18
|
private const string WebGLTemplateDestination = "Assets/WebGLTemplates/HyperLoader";
|
|
19
|
+
private const string HyperGameContentConfigRelativePath = "Runtime/Resources/HyperGameContentConfig.asset";
|
|
20
|
+
private const string HyperSDKSettingsRelativePath = "Runtime/Resources/HyperSDKSettings.asset";
|
|
21
|
+
private const string HyperGameContentConfigDestination = "Assets/HyperSDK/Resources/HyperGameContentConfig.asset";
|
|
22
|
+
private const string HyperSDKSettingsDestination = "Assets/HyperSDK/Resources/HyperSDKSettings.asset";
|
|
19
23
|
|
|
20
24
|
static HyperSDKInstaller()
|
|
21
25
|
{
|
|
@@ -41,8 +45,14 @@ namespace Hyper.Editor
|
|
|
41
45
|
var previousVersion = EditorPrefs.GetString(InstallerPrefsKey, string.Empty);
|
|
42
46
|
var sceneExists = File.Exists(HyperLoaderSceneDestination);
|
|
43
47
|
var templateExists = Directory.Exists(WebGLTemplateDestination);
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
var configExists = File.Exists(HyperGameContentConfigDestination);
|
|
49
|
+
var settingsExists = File.Exists(HyperSDKSettingsDestination);
|
|
50
|
+
|
|
51
|
+
if (previousVersion == packageInfo.version &&
|
|
52
|
+
sceneExists &&
|
|
53
|
+
templateExists &&
|
|
54
|
+
configExists &&
|
|
55
|
+
settingsExists)
|
|
46
56
|
{
|
|
47
57
|
return;
|
|
48
58
|
}
|
|
@@ -50,11 +60,15 @@ namespace Hyper.Editor
|
|
|
50
60
|
var packageRoot = packageInfo.resolvedPath;
|
|
51
61
|
var hyperLoaderSource = Path.Combine(packageRoot, HyperLoaderSceneRelativePath);
|
|
52
62
|
var templateSource = Path.Combine(packageRoot, WebGLTemplateRelativePath);
|
|
63
|
+
var hyperGameContentConfigSource = Path.Combine(packageRoot, HyperGameContentConfigRelativePath);
|
|
64
|
+
var hyperSDKSettingsSource = Path.Combine(packageRoot, HyperSDKSettingsRelativePath);
|
|
53
65
|
|
|
54
66
|
try
|
|
55
67
|
{
|
|
56
|
-
|
|
68
|
+
CopyFileWithoutMeta(hyperLoaderSource, HyperLoaderSceneDestination);
|
|
57
69
|
CopyTemplate(templateSource);
|
|
70
|
+
CopyFileWithoutMeta(hyperGameContentConfigSource, HyperGameContentConfigDestination);
|
|
71
|
+
CopyFileWithoutMeta(hyperSDKSettingsSource, HyperSDKSettingsDestination);
|
|
58
72
|
|
|
59
73
|
EditorPrefs.SetString(InstallerPrefsKey, packageInfo.version);
|
|
60
74
|
AssetDatabase.Refresh();
|
|
@@ -65,26 +79,20 @@ namespace Hyper.Editor
|
|
|
65
79
|
}
|
|
66
80
|
}
|
|
67
81
|
|
|
68
|
-
private static void
|
|
82
|
+
private static void CopyFileWithoutMeta(string sourcePath, string destinationPath)
|
|
69
83
|
{
|
|
70
84
|
if (!File.Exists(sourcePath))
|
|
71
85
|
{
|
|
72
86
|
return;
|
|
73
87
|
}
|
|
74
88
|
|
|
75
|
-
var destinationDir = Path.GetDirectoryName(
|
|
89
|
+
var destinationDir = Path.GetDirectoryName(destinationPath);
|
|
76
90
|
if (!string.IsNullOrEmpty(destinationDir))
|
|
77
91
|
{
|
|
78
92
|
Directory.CreateDirectory(destinationDir);
|
|
79
93
|
}
|
|
80
94
|
|
|
81
|
-
FileUtil.CopyFileOrDirectory(sourcePath,
|
|
82
|
-
|
|
83
|
-
var sourceMeta = $"{sourcePath}.meta";
|
|
84
|
-
if (File.Exists(sourceMeta))
|
|
85
|
-
{
|
|
86
|
-
FileUtil.CopyFileOrDirectory(sourceMeta, $"{HyperLoaderSceneDestination}.meta");
|
|
87
|
-
}
|
|
95
|
+
FileUtil.CopyFileOrDirectory(sourcePath, destinationPath);
|
|
88
96
|
}
|
|
89
97
|
|
|
90
98
|
private static void CopyTemplate(string sourceDirectory)
|
|
@@ -106,6 +114,21 @@ namespace Hyper.Editor
|
|
|
106
114
|
}
|
|
107
115
|
|
|
108
116
|
FileUtil.CopyFileOrDirectory(sourceDirectory, WebGLTemplateDestination);
|
|
117
|
+
RemoveMetaFiles(WebGLTemplateDestination);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private static void RemoveMetaFiles(string directory)
|
|
121
|
+
{
|
|
122
|
+
if (!Directory.Exists(directory))
|
|
123
|
+
{
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
var metaFiles = Directory.GetFiles(directory, "*.meta", SearchOption.AllDirectories);
|
|
128
|
+
foreach (var meta in metaFiles)
|
|
129
|
+
{
|
|
130
|
+
FileUtil.DeleteFileOrDirectory(meta);
|
|
131
|
+
}
|
|
109
132
|
}
|
|
110
133
|
}
|
|
111
134
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app.hypergames.hypersdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"displayName": "HyperSDK",
|
|
5
|
-
"description": "Official Unity SDK for HyperGames.
|
|
5
|
+
"description": "Official Unity SDK for HyperGames. Brings platform APIs, multiplayer battle flow, score and tutorial systems, and WebGL build tooling straight into your project.",
|
|
6
6
|
"unity": "6000.0",
|
|
7
7
|
"unityRelease": "0b5",
|
|
8
8
|
"keywords": [
|