@notask/unity-cli-tools 1.0.6-rc.1 → 1.0.6-rc.2

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.0.6-rc.2](https://github.com/NoTaskStudios/unity-cli-tools/compare/1.0.6-rc.1...1.0.6-rc.2) (2025-04-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Hub:** auto detect system arch when arg no passed ([1e6ff27](https://github.com/NoTaskStudios/unity-cli-tools/commit/1e6ff27ca37a70014823693489447d8cd2ada9b9))
7
+
1
8
  ## [1.0.6-rc.1](https://github.com/NoTaskStudios/unity-cli-tools/compare/1.0.5...1.0.6-rc.1) (2025-04-30)
2
9
 
3
10
 
@@ -143,7 +143,9 @@ class UnityHub {
143
143
  throw error;
144
144
  }
145
145
  }
146
- static async addEditor(version, modules = [], architecture = unity_js_1.EditorArchitecture.x86_64) {
146
+ static async addEditor(version, modules = [], architecture = process.platform === "darwin"
147
+ ? unity_js_1.EditorArchitecture.arm64
148
+ : unity_js_1.EditorArchitecture.x86_64) {
147
149
  try {
148
150
  const data = await (0, unity_changeset_1.getUnityChangeset)(version);
149
151
  const args = ["install", "-v", version];
@@ -152,9 +154,7 @@ class UnityHub {
152
154
  args.push("--module");
153
155
  args.push(modules.join(" "));
154
156
  }
155
- if (this.platform === "darwin") {
156
- args.push("--architecture", architecture);
157
- }
157
+ args.push("--architecture", architecture);
158
158
  const { stdout, stderr } = await this.execUnityHubCommand(args, {
159
159
  reject: false,
160
160
  });
@@ -138,7 +138,9 @@ class UnityHub {
138
138
  throw error;
139
139
  }
140
140
  }
141
- static async addEditor(version, modules = [], architecture = EditorArchitecture.x86_64) {
141
+ static async addEditor(version, modules = [], architecture = process.platform === "darwin"
142
+ ? EditorArchitecture.arm64
143
+ : EditorArchitecture.x86_64) {
142
144
  try {
143
145
  const data = await getUnityChangeset(version);
144
146
  const args = ["install", "-v", version];
@@ -147,9 +149,7 @@ class UnityHub {
147
149
  args.push("--module");
148
150
  args.push(modules.join(" "));
149
151
  }
150
- if (this.platform === "darwin") {
151
- args.push("--architecture", architecture);
152
- }
152
+ args.push("--architecture", architecture);
153
153
  const { stdout, stderr } = await this.execUnityHubCommand(args, {
154
154
  reject: false,
155
155
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notask/unity-cli-tools",
3
- "version": "1.0.6-rc.1",
3
+ "version": "1.0.6-rc.2",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",