com.wallstop-studios.unity-helpers 2.0.0-rc38 → 2.0.0-rc39
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.
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
name: Export and Release Unity Package
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- 'package.json'
|
|
4
|
+
workflow_run:
|
|
5
|
+
workflows: ["Unity Tests"]
|
|
6
|
+
types:
|
|
7
|
+
- completed
|
|
9
8
|
workflow_dispatch:
|
|
10
9
|
inputs:
|
|
11
10
|
logLevel:
|
|
@@ -70,9 +69,9 @@ jobs:
|
|
|
70
69
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
71
70
|
with:
|
|
72
71
|
unityVersion: 2022.3.5f1
|
|
73
|
-
targetPlatform:
|
|
74
|
-
buildMethod: BuildScript.
|
|
75
|
-
|
|
72
|
+
targetPlatform: StandaloneLinux64
|
|
73
|
+
buildMethod: BuildScript.BuildLinux
|
|
74
|
+
projectPath: .
|
|
76
75
|
|
|
77
76
|
- name: Export Unity Package
|
|
78
77
|
if: env.should_build == 'true'
|
package/Editor/BuildScript.cs
CHANGED
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
#if UNITY_EDITOR
|
|
4
4
|
using UnityEditor;
|
|
5
5
|
using System.IO;
|
|
6
|
+
using UnityEngine;
|
|
6
7
|
|
|
7
8
|
// Needed for build
|
|
8
9
|
public static class BuildScript
|
|
9
10
|
{
|
|
10
11
|
[MenuItem("Build/Build Unity Package")]
|
|
11
|
-
public static void
|
|
12
|
+
public static void BuildLinux()
|
|
12
13
|
{
|
|
14
|
+
Debug.Log($"Project Path: {Application.dataPath}");
|
|
15
|
+
|
|
13
16
|
string[] scenes = { "Editor/Scenes/SampleScene.unity" };
|
|
14
17
|
|
|
15
18
|
const string buildPath = "Builds/UnityHelpers";
|