Skip to content

Commit 6ecd78f

Browse files
committed
Make Unity test setup script runnable in *nix.
1 parent 0b6e24a commit 6ecd78f

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

test/MsgPack.UnitTest.Unity.Il2cpp.Full.Desktop/MakeAssets.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ foreach($c in $csproj.Project.ItemGroup.Compile)
1717

1818
if ($c.Link -ne $null)
1919
{
20-
$destination = "Assets/UnitTests/$($c.Link)"
20+
$destination = "Assets/UnitTests/$($c.Link)".Replace("\", "/")
2121
}
2222
else
2323
{
24-
$destination = "Assets/UnitTests/$($c.Include)"
24+
$destination = "Assets/UnitTests/$($c.Include)".Replace("\", "/")
2525
}
2626

2727
$destinationDirectory = [IO.Path]::GetDirectoryName($destination);

test/MsgPack.UnitTest.Unity.Il2cpp.Full/Readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ How to build
99
---
1010

1111
1. Go to `../MsgPack.UnitTest.Unity.Il2cpp.Full.Desktop` directory.
12-
2. Run `MakeAssets.ps1` PowerShell script (it may work on PowerShell Core)
12+
2. Run `MakeAssets.ps1` PowerShell script.
13+
```
14+
@rem In Windows
15+
powershell -ExecutionPolicy Unrestricted ./MakeAssets.ps1
16+
```
17+
```
18+
# In *nix
19+
pwsh ./MakeAssets.ps1
20+
```
1321
3. Ensure `../MsgPack.UnitTest.Unity.Il2cpp.Full.Desktop/Assets` directory and its subtree have been generated.
1422
4. Open this folder with Unity.
1523
5. Import `../MsgPack.UnitTest.Unity.Il2cpp.Full.Desktop/Assets/Dll` directory into `Assets` of Unity project with Unity Editor.

0 commit comments

Comments
 (0)