Skip to content

Commit 7578c5c

Browse files
committed
Minor updates to the readme and license files. SDK is now only covered by the Tobii SDLA
added signing och the nuget package
1 parent b9dea9e commit 7578c5c

16 files changed

Lines changed: 2579 additions & 47 deletions

.github/workflows/build.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
- name: Setup .NET Core
2525
uses: actions/setup-dotnet@v1
2626
with:
27-
dotnet-version: 5.0.100
27+
dotnet-version: '6.0.x'
28+
include-prerelease: true
2829
- name: Install dependencies
2930
run: dotnet restore
3031
- name: Build debug
@@ -42,13 +43,40 @@ jobs:
4243
recursive: true
4344

4445
- name: Build nuget package
45-
run: dotnet pack --configuration Release /p:Version=${{steps.version.outputs.version}}
46+
run: dotnet pack --no-build --configuration Release /p:Version=${{steps.version.outputs.version}}
47+
48+
49+
# https://timheuer.com/blog/use-nuget-with-github-actions-github-packages/
50+
# - name: Setup NuGet
51+
# uses: NuGet/setup-nuget@v1.0.2
52+
# with:
53+
# nuget-api-key: ${{ secrets.G3SDKNUGETAPIKEY }}
54+
# nuget-version: latest
55+
56+
- name: Get certificate
57+
id: cert_file
58+
uses: timheuer/base64-to-file@master
59+
with:
60+
fileName: 'certfile.pfx'
61+
encodedString: ${{ secrets.TOBIICODESIGNCERTIFICATE_B64 }}
62+
63+
# Sign the package
64+
# - name: Setup nuget
65+
# uses: nuget/setup-nuget@v1
66+
# with:
67+
# nuget-api-key: ${{ secrets.G3SDKNUGETAPIKEY }}
68+
# nuget-version: '5.x'
69+
70+
- name: Sign NuGet Package
71+
run: dotnet nuget sign "source\bin\Release\Tobii.Glasses3.SDK.${{steps.version.outputs.version}}.nupkg" --certificate-path "${{steps.cert_file.outputs.filePath}}" --certificate-password "${{secrets.CODESIGNPASSWORD}}" --timestamper http://timestamp.digicert.com --verbosity detailed
72+
# run: tools\nuget.exe sign "source\bin\Release\Tobii.Glasses3.SDK.${{steps.version.outputs.version}}.nupkg" -Timestamper http://timestamp.digicert.com –NonInteractive -Verbosity detailed
4673

4774
- name: Upload nuget package
4875
uses: actions/upload-artifact@v2
4976
with:
5077
name: Tobii.Glasses3.SDK_${{steps.version.outputs.version}}
5178
path: source/bin/Release/Tobii.Glasses3.SDK.*.nupkg
79+
5280
- name: Upload signed SDK dlls, .net4
5381
uses: actions/upload-artifact@v2
5482
with:

G3SDK.sln

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ EndProject
1212
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3220B0DB-E356-42BA-9024-54E73E0D037C}"
1313
ProjectSection(SolutionItems) = preProject
1414
.github\workflows\build.yml = .github\workflows\build.yml
15-
LICENSE.txt = LICENSE.txt
1615
README.md = README.md
1716
Readme.txt = Readme.txt
17+
SDLA\Tobii Pro SDLA for Research Use.html = SDLA\Tobii Pro SDLA for Research Use.html
18+
SDLA\Tobii Pro SDLA for Research Use.md = SDLA\Tobii Pro SDLA for Research Use.md
19+
SDLA\Tobii Pro SDLA for Research Use.pdf = SDLA\Tobii Pro SDLA for Research Use.pdf
1820
EndProjectSection
1921
EndProject
2022
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "G3LSLConnector", "examples\G3LSLConnector\G3LSLConnector.csproj", "{956CB83E-BE81-4CDA-AA6B-4A1A7915666E}"
@@ -25,7 +27,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "G3Demo", "examples\G3Demo\G
2527
EndProject
2628
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "G3ToScreenMapper", "examples\G3ToScreenMapper\G3ToScreenMapper.csproj", "{C84B11C9-C2BE-441E-BB85-F1B775F30DE7}"
2729
EndProject
28-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "G3Simulator", "G3Simulator\G3Simulator.csproj", "{B79D2615-80D1-4E59-8E78-0229532743C7}"
30+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "G3Simulator", "G3Simulator\G3Simulator.csproj", "{B79D2615-80D1-4E59-8E78-0229532743C7}"
2931
EndProject
3032
Global
3133
GlobalSection(SolutionConfigurationPlatforms) = preSolution

G3Simulator/G3Simulator.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public Uri LiveRtspUri(bool gazeOverlay = false)
6868
public class UpgradeSimulator : IUpgrade
6969
{
7070
private readonly G3Simulator _g3Simulator;
71-
private bool _inProgress;
7271

7372
public UpgradeSimulator(G3Simulator g3Simulator)
7473
{
@@ -79,7 +78,7 @@ public UpgradeSimulator(G3Simulator g3Simulator)
7978

8079
public IG3Observable<bool> Completed { get; }
8180
public IG3Observable<UpgradeState> Progress { get; }
82-
public Task<bool> InProgress => Task.FromResult(_inProgress);
81+
public Task<bool> InProgress => Task.FromResult(false);
8382
}
8483

8584
public class WebRTCSimulator : IWebRTC
@@ -210,7 +209,7 @@ public class RudimentarySimulator : IRudimentary
210209
private G3ImuData _lastImu;
211210
private G3Event _lastEvent;
212211
private G3SyncPortData _lastSyncPort;
213-
private int _sceneQuality;
212+
private int _sceneQuality = 25;
214213
private readonly SignalSimulator<byte[]> _sceneSig = new SignalSimulator<byte[]>();
215214
private readonly SignalSimulator<G3SyncPortData> _syncPortSig = new SignalSimulator<G3SyncPortData>();
216215
private readonly SignalSimulator<G3ImuData> _imuSig = new SignalSimulator<G3ImuData>();

LICENSE.txt

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

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Tobii Pro Glasses 3 SDK for .net ![example workflow](https://github.com/tobiipro/G3SDK.net/actions/workflows/build.yml/badge.svg)
22

33
## License
4-
The source code for this SDK and its examples is licensed under a permissive MIT license, but the
5-
[Tobii Software Development License Agreement](SDLA/licenseagreement.html) is still in effect when
6-
it comes to developing software for the Glasses3 API.
4+
The source code for this SDK and its examples is licensed under the
5+
[Tobii Software Development License Agreement](SDLA/licenseagreement.html).
76

87
## Installation
98

@@ -15,7 +14,7 @@ You can install using NuGet like this:
1514
nuget install Tobii.Glasses3.SDK.net
1615
```
1716

18-
Or select it from the NuGet packages UI on Visual Studio.
17+
Or select it from the NuGet packages UI in Visual Studio.
1918

2019
On Visual Studio, make sure that you are targeting atleast either .netframework 4.7.2 or .net5, as this package uses some features of newer .NETs.
2120

@@ -53,7 +52,7 @@ The SDK does not support streaming data via WebRTC or RTSP on its own, you will
5352
### Glasses Demo
5453
Demo that shows
5554
* How to find glasses
56-
* Show live view (using RTSP) with synchronized local gaze overlay
55+
* Show live view (using RTSP via the FFME.Windows package) with synchronized local gaze overlay
5756
* Start/stop recordings
5857
* Calibrate glasses
5958
* Change settings

0 commit comments

Comments
 (0)