Skip to content

Commit 36336be

Browse files
authored
Refactor and update version (#45)
1 parent eb89523 commit 36336be

File tree

4 files changed

+5
-43
lines changed

4 files changed

+5
-43
lines changed

Desktop.Robot/Desktop.Robot.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>net6.0</TargetFramework>
4-
<Version>1.4.1</Version>
4+
<Version>1.5.0</Version>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<Authors>Lucas Simas</Authors>
77
<Description>A library used to control your mouse and keyboard programmatically in .NET Core</Description>

Desktop.Robot/OSX/Robot.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

Desktop.Robot/Robot.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public Robot()
1313
{
1414
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
1515
{
16-
robot = new OSX.Robot();
16+
robot = RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ?
17+
new OSX.Arm.Robot() : new OSX.Intel.Robot();
1718
}
1819
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
1920
{

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ I made this library because the dotnet SDK doesn't support simulation of mouse a
2020
If you are using Package Manager:
2121

2222
```bash
23-
Install-Package Desktop.Robot -Version 1.4.1
23+
Install-Package Desktop.Robot -Version 1.5.0
2424
```
2525

2626
If you are using .NET CLI
2727

2828
```bash
29-
dotnet add package Desktop.Robot --version 1.4.1
29+
dotnet add package Desktop.Robot --version 1.5.0
3030
```
3131

3232

0 commit comments

Comments
 (0)