Skip to content

Commit 8b94b19

Browse files
committed
add Node.js and Python examples
1 parent b83bdff commit 8b94b19

File tree

17 files changed

+232
-2
lines changed

17 files changed

+232
-2
lines changed

.github/workflows/Release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,17 @@ jobs:
1717
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
1818
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Examples\WindowsDesktop\WindowsDesktop_VS2019.sln -p:Configuration=Release
1919
rm $Env:GITHUB_WORKSPACE\Examples\WindowsDesktop\obj -r -fo
20-
- name: Build Windows Desktop
20+
- name: Build Console example
21+
run: |
22+
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
23+
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Examples\ConsoleWindowsLinuxMac\ConsoleWindowsLinuxMac.csproj /p:DeployOnBuild=true /p:PublishProfile=win-x86 /p:Configuration=Release /p:OutDir=bin/win-x86
24+
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Examples\ConsoleWindowsLinuxMac\ConsoleWindowsLinuxMac.csproj /p:DeployOnBuild=true /p:PublishProfile=win-x64 /p:Configuration=Release /p:OutDir=bin/win-x64
25+
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Examples\ConsoleWindowsLinuxMac\ConsoleWindowsLinuxMac.csproj /p:DeployOnBuild=true /p:PublishProfile=win-arm /p:Configuration=Release /p:OutDir=bin/win-arm
26+
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Examples\ConsoleWindowsLinuxMac\ConsoleWindowsLinuxMac.csproj /p:DeployOnBuild=true /p:PublishProfile=osx-x64 /p:Configuration=Release /p:OutDir=bin/osx-64
27+
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Examples\ConsoleWindowsLinuxMac\ConsoleWindowsLinuxMac.csproj /p:DeployOnBuild=true /p:PublishProfile=linux-arm /p:Configuration=Release /p:OutDir=bin/linux-arm
28+
.\MSBuild.exe $Env:GITHUB_WORKSPACE\Examples\ConsoleWindowsLinuxMac\ConsoleWindowsLinuxMac.csproj /p:DeployOnBuild=true /p:PublishProfile=linux-x64 /p:Configuration=Release /p:OutDir=bin/linux-x64
29+
rm $Env:GITHUB_WORKSPACE\Examples\ConsoleWindowsLinuxMac\obj -r -fo
30+
- name: zip example
2131
run: 7z a -tzip -mx=9 $Env:GITHUB_WORKSPACE\UniversalRobotsSDK_UnderAutomation.zip $Env:GITHUB_WORKSPACE\Examples $Env:GITHUB_WORKSPACE\Libraries
2232
- uses: ncipollo/release-action@v1
2333
with:

Examples/ConsoleWindowsLinuxMac/ConsoleWindowsLinuxMac.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<AssemblyName>ConsoleURExample</AssemblyName>
77
<RootNamespace>UnderAutomation.UniversalRobots.Example</RootNamespace>
88
<ApplicationIcon>ua.ico</ApplicationIcon>
9-
<Version>1.1.1</Version>
9+
<Version>2.0.0</Version>
10+
<RuntimeIdentifiers>win-x86;win-x64;win-arm;linux-arm;linux-x64;osx-x64</RuntimeIdentifiers>
1011
</PropertyGroup>
1112

1213
<ItemGroup>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6+
<PropertyGroup>
7+
<PublishProtocol>FileSystem</PublishProtocol>
8+
<Configuration>Release</Configuration>
9+
<Platform>Any CPU</Platform>
10+
<TargetFramework>netcoreapp3.0</TargetFramework>
11+
<PublishDir>bin\linux-arm</PublishDir>
12+
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
13+
<SelfContained>true</SelfContained>
14+
</PropertyGroup>
15+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6+
<PropertyGroup>
7+
<PublishProtocol>FileSystem</PublishProtocol>
8+
<Configuration>Release</Configuration>
9+
<Platform>Any CPU</Platform>
10+
<TargetFramework>netcoreapp3.0</TargetFramework>
11+
<PublishDir>bin\linux-x64</PublishDir>
12+
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
13+
<SelfContained>true</SelfContained>
14+
</PropertyGroup>
15+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6+
<PropertyGroup>
7+
<PublishProtocol>FileSystem</PublishProtocol>
8+
<Configuration>Release</Configuration>
9+
<Platform>Any CPU</Platform>
10+
<TargetFramework>netcoreapp3.0</TargetFramework>
11+
<PublishDir>bin\osx-x64</PublishDir>
12+
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
13+
<SelfContained>true</SelfContained>
14+
</PropertyGroup>
15+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6+
<PropertyGroup>
7+
<PublishProtocol>FileSystem</PublishProtocol>
8+
<Configuration>Release</Configuration>
9+
<Platform>Any CPU</Platform>
10+
<TargetFramework>netcoreapp3.0</TargetFramework>
11+
<PublishDir>bin\win-arm</PublishDir>
12+
<RuntimeIdentifier>win-arm</RuntimeIdentifier>
13+
<SelfContained>true</SelfContained>
14+
</PropertyGroup>
15+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6+
<PropertyGroup>
7+
<PublishProtocol>FileSystem</PublishProtocol>
8+
<Configuration>Release</Configuration>
9+
<Platform>Any CPU</Platform>
10+
<TargetFramework>netcoreapp3.0</TargetFramework>
11+
<PublishDir>bin\win-x64</PublishDir>
12+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
13+
<SelfContained>true</SelfContained>
14+
</PropertyGroup>
15+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
6+
<PropertyGroup>
7+
<PublishProtocol>FileSystem</PublishProtocol>
8+
<Configuration>Release</Configuration>
9+
<Platform>Any CPU</Platform>
10+
<TargetFramework>netcoreapp3.0</TargetFramework>
11+
<PublishDir>bin\win-x86</PublishDir>
12+
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
13+
<SelfContained>true</SelfContained>
14+
</PropertyGroup>
15+
</Project>

Examples/Node.js/install.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm install

Examples/Node.js/package-lock.json

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)