Skip to content

Commit 53b82bb

Browse files
committed
Migrate CI to GitHub Actions, remove Mouse.png image
Replaced Azure Pipelines with a GitHub Actions workflow for build and release, now located at .github/workflows/release-pipeline.yaml and referenced in the solution file. Upgraded solution to Visual Studio 2022. Removed Mouse.png and all related resource references, replacing the image in MainWindow.xaml with an inline SVG Path for the mouse icon.
1 parent e9e258a commit 53b82bb

6 files changed

Lines changed: 28 additions & 126 deletions

File tree

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
# Workflow to build and release for production
2-
name: Build & Release
1+
# Workflow to build and release Cursor Coordinate Tracker for production
2+
name: Cursor Coordinate Tracker
33

44
# Permissions for the workflow
55
permissions:
66
contents: write
77

8-
# Trigger workflow on push to the main branch
8+
# Trigger the workflow on push to the main branch
99
on:
1010
push:
1111
branches:
1212
- main
13+
paths-ignore:
14+
- 'README.md'
15+
workflow_dispatch:
1316

1417
# Set environment variables
1518
env:
@@ -18,6 +21,7 @@ env:
1821
binariesDirectory: ${{ github.workspace }}/binaries
1922
buildConfiguration: 'Release'
2023
buildPlatform: 'any cpu'
24+
dotnetVersion: '10'
2125
projectName: CursorCoordinateTracker
2226

2327
# Default settings for all run steps
@@ -80,7 +84,7 @@ jobs:
8084
- name: Setup .NET Core SDK
8185
uses: actions/setup-dotnet@v4
8286
with:
83-
dotnet-version: 8
87+
dotnet-version: ${{ env.dotnetVersion }}.x
8488

8589
# Step to restore packages
8690
- name: Restore Packages
@@ -98,7 +102,7 @@ jobs:
98102
run: |
99103
New-Item -Path "${{ env.artifactStagingDirectory }}" -ItemType Directory
100104
Compress-Archive `
101-
-Path ${{ env.projectName }}/bin/Release/net8.0-windows/win-x64./publish/* `
105+
-Path ${{ env.projectName }}/bin/Release/net${{ env.dotnetVersion }}.0-windows/win-x64/publish/* `
102106
-DestinationPath ${{ env.artifactStagingDirectory }}/${{ env.projectName }}.${{ env.buildVersion }}-win-x64.zip
103107
104108
# Step to upload the build artifact
@@ -141,4 +145,4 @@ jobs:
141145
name: ${{ env.artifactType }} v${{ env.buildVersion }}
142146
generate_release_notes: true
143147
env:
144-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build/AzurePipeline.yaml

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

src/CursorCoordinateTracker.sln

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.8.34322.80
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.1.11312.151 d18.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CursorCoordinateTracker", "CursorCoordinateTracker\CursorCoordinateTracker.csproj", "{FDA2674F-8AB7-49AB-9693-E8DA2E24F1A1}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".build", ".build", "{294CD280-BA5D-42A7-910D-6C96433417D1}"
99
ProjectSection(SolutionItems) = preProject
10-
..\build\AzurePipeline.yaml = ..\build\AzurePipeline.yaml
10+
..\.github\workflows\release-pipeline.yaml = ..\.github\workflows\release-pipeline.yaml
1111
EndProjectSection
1212
EndProject
1313
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{61640856-75DF-45B6-9D0D-0EA8ACFC947E}"

src/CursorCoordinateTracker/CursorCoordinateTracker.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,4 @@
1111
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1212
</PropertyGroup>
1313

14-
<ItemGroup>
15-
<None Remove="Mouse.png" />
16-
</ItemGroup>
17-
18-
<ItemGroup>
19-
<Resource Include="Mouse.png" />
20-
</ItemGroup>
21-
2214
</Project>

src/CursorCoordinateTracker/MainWindow.xaml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,21 @@
6666
AccessKeyManager.AccessKeyPressed="BtnSetPosition_AccessKeyPressed"
6767
Cursor="Hand"/>
6868

69-
<Image HorizontalAlignment="Left"
70-
Height="100"
71-
Margin="211,52,0,0"
72-
VerticalAlignment="Top"
73-
Width="100"
74-
Source="/Mouse.png"
75-
RenderTransformOrigin="0.5,0.5">
76-
<Image.RenderTransform>
77-
<TransformGroup>
78-
<ScaleTransform/>
79-
<SkewTransform/>
80-
<RotateTransform Angle="35"/>
81-
<TranslateTransform/>
82-
</TransformGroup>
83-
</Image.RenderTransform>
84-
</Image>
69+
70+
<Viewbox HorizontalAlignment="Left"
71+
VerticalAlignment="Top"
72+
Width="100"
73+
Height="100"
74+
Margin="211,52,0,0"
75+
Stretch="Fill"
76+
RenderTransformOrigin="0.5,0.5">
77+
78+
<Canvas Width="640" Height="640">
79+
<Path Fill="Black"
80+
Data="M173.3 66.5C181.4 62.4 191.2 63.3 198.4 68.8L518.4 308.7C526.7 314.9 530 325.7 526.8 335.5C523.6 345.3 514.4 351.9 504 351.9L351.7 351.9L440.6 529.6C448.5 545.4 442.1 564.6 426.3 572.5C410.5 580.4 391.3 574 383.4 558.2L294.5 380.5L203.2 502.3C197 510.6 186.2 513.9 176.4 510.7C166.6 507.5 160 498.3 160 488L160 88C160 78.9 165.1 70.6 173.3 66.5z">
81+
</Path>
82+
</Canvas>
83+
</Viewbox>
8584

8685
<Label Content="Faster"
8786
HorizontalAlignment="Left"
-65 KB
Binary file not shown.

0 commit comments

Comments
 (0)