Skip to content

Commit 2233d15

Browse files
committed
add debug log
1 parent 0017bd9 commit 2233d15

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

OneSignalExample/Assets/OneSignalPackager/Editor/OneSignalPackagePublisher.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
using System.IO;
2929
using System.Linq;
3030
using UnityEditor;
31+
using UnityEngine;
3132

3233
namespace OneSignalSDK
3334
{
@@ -56,17 +57,12 @@ public static void ExportUnityPackage()
5657
var filePaths = _filePaths();
5758
Debug.Log($"File paths to export: {filePaths}");
5859

59-
if (filePaths.Length == 0)
60-
{
61-
Debug.LogError("ERROR: No file paths returned by _filePaths()!");
62-
EditorApplication.Exit(1);
63-
return;
64-
}
65-
6660
Debug.Log("Starting AssetDatabase.ExportPackage...");
6761

62+
var exportPath = "Assets/OneSignal";
63+
6864
AssetDatabase.ExportPackage(
69-
_filePaths(),
65+
exportPath,
7066
packageName,
7167
ExportPackageOptions.Recurse | ExportPackageOptions.IncludeDependencies
7268
);

composeRelease.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,18 @@ executeUnityMethod() {
299299
-executeMethod "${method_name}" \
300300
-logFile "${log_path}"
301301

302+
local unity_pid=$!
303+
304+
# Tail the log in real-time
305+
tail -f "${log_path}" 2>/dev/null &
306+
local tail_pid=$!
307+
308+
# Wait for Unity to finish
309+
wait ${unity_pid}
310+
311+
# Clean up tail process
312+
kill ${tail_pid} 2>/dev/null || true
313+
302314
local method_result=$?
303315

304316
if [[ ${method_result} -ne 0 ]]; then

0 commit comments

Comments
 (0)