Skip to content

Commit db8cbd8

Browse files
committed
update release build scripts
1 parent 989b0f8 commit db8cbd8

File tree

9 files changed

+70
-67
lines changed

9 files changed

+70
-67
lines changed

MouseTrap.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.29411.108
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MouseTrap", "MouseTrap\MouseTrap.csproj", "{7D3F74F8-5F37-4CC2-A82C-64669E4B3AB3}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MouseTrap", "MouseTrap\MouseTrap.csproj", "{7D3F74F8-5F37-4CC2-A82C-64669E4B3AB3}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{02A88C37-94A2-41A9-82FD-D279583D03D6}"
99
ProjectSection(SolutionItems) = preProject
1010
appveyor.yml = appveyor.yml
11-
build\Build-Release.ps1 = build\Build-Release.ps1
11+
build\Create-Artifacts.ps1 = build\Create-Artifacts.ps1
1212
README.md = README.md
1313
EndProjectSection
1414
EndProject

MouseTrap/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using System.Runtime.InteropServices;
33
using MouseTrap;
44

@@ -11,7 +11,7 @@
1111
[assembly: AssemblyConfiguration("")]
1212
[assembly: AssemblyCompany("LarchSys")]
1313
[assembly: AssemblyProduct(App.Name)]
14-
[assembly: AssemblyCopyright("Copyright © 2018")]
14+
[assembly: AssemblyCopyright("Copyright © 2020")]
1515
[assembly: AssemblyTrademark("")]
1616
[assembly: AssemblyCulture("")]
1717

MouseTrap/choco/MouseTrap.nuspec

Lines changed: 11 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<package>
33
<metadata>
44
<id>MouseTrap</id>
5-
<version>1.0.1</version>
5+
<version>0.0.0</version>
66
<title>MouseTrap DPI aware mouse move across screens</title>
77
<tags>multiscreen mouse-pointer screen-scale dpi-awareness dpi-scaling cursor-moves cursor-position</tags>
88
<summary>A small tool to map the cursor between monitors with different DPIs</summary>
@@ -14,66 +14,36 @@ different resolutions and scaling settings.
1414

1515
## Min requirements
1616

17-
This tool needs the dpiAwareness api `PerMonitorV2` first introduced in **Windows 10 Creators update**.
18-
So **for this tool to function correctly** you should have at least **Windows build 1703**
17+
For this tool to function correctly you should have:
18+
19+
- At least **Windows 10 Creators update** (Build 1703)
20+
- [**.NET 5 Runtime**](https://dotnet.microsoft.com/download/dotnet/current/runtime) (in most cases it will notify you if the runtime is missing)
1921

2022
## Usage and Configuration
2123

2224
Here you can find the [documentation](https://github.com/r-Larch/MouseTrap/blob/master/README.md).
2325
</description>
2426
<authors>René Larch</authors>
2527
<owners>René Larch</owners>
26-
<copyright>Copyright 2019 René Larch</copyright>
28+
<copyright>Copyright 2020 René Larch</copyright>
2729
<licenseUrl>https://github.com/r-Larch/MouseTrap/blob/master/LICENSE.txt</licenseUrl>
2830
<projectUrl>https://github.com/r-Larch/MouseTrap</projectUrl>
2931
<projectSourceUrl>https://github.com/r-Larch/MouseTrap</projectSourceUrl>
3032
<bugTrackerUrl>https://github.com/r-Larch/MouseTrap/issues</bugTrackerUrl>
3133
<docsUrl>https://github.com/r-Larch/MouseTrap/blob/master/README.md</docsUrl>
3234
<iconUrl>https://raw.githubusercontent.com/r-Larch/MouseTrap/master/MouseTrap/AppIcon.png</iconUrl>
3335
<requireLicenseAcceptance>false</requireLicenseAcceptance>
34-
<releaseNotes>eb517c3 update setup.cmd
35-
7ddbf15 makes ScreensView able to handle negative screen coordinates
36-
e3ac5f0 remove useless dispose
37-
135c8f9 fixes #1 Unhandled exception while user is logging in.
38-
f3b141c v1.0.0-beta binarys
39-
37bde46 Update v1.0.0-beta
40-
a53dee1 fixes countless issues and makes app more stable
41-
245377b requireAdministrator
42-
1ed14d9 added logger
43-
7a5957c Update v1.0.0-beta
44-
36bb4c2 fixed: Cursor gets trapped on one screen after switching between windows running under different users
45-
01ccabe fix issues in .nuspec
46-
a764c94 v1.0.0-beta binarys
47-
02f2e04 Update v1.0.0-beta
48-
8bbb1db let worker thread be a background thread
49-
3bb1efe added choco icon
50-
4e01838 v1.0.0-beta binarys
51-
758dcf3 Update v1.0.0-beta
52-
79350d4 set thread priority higher so moves smooth even if all CPU cores are at 100%
53-
dfbc0ff added VERIFICATION.txt for choco
54-
d242fc2 Update README.md
55-
d73d400 update README.md with choco instractions
56-
86f2af8 v1.0.0-beta binarys
57-
882cd8c Release v1.0.0-beta
58-
c3fd99d update build script to auto create choco nupkg
59-
cbfdeda update build script
60-
b84836c added nuspec for choco
61-
13e044a update README.md
62-
b8cf831 fix setup.cmd
63-
29515fc add build script
64-
7fc64c1 auto reload screen configs on SystemEvents.DisplaySettingsChanged
65-
8cfbf03 fix some potentional exceptions in edge cases
66-
4b731b1 fix spelling
67-
89a35ab updated README.md</releaseNotes>
36+
<releaseNotes>...</releaseNotes>
6837
<dependencies>
6938
<!--<dependency id="" version=""/>-->
7039
</dependencies>
7140
</metadata>
7241
<files>
7342
<file src="..\..\LICENSE.txt" />
7443
<file src="..\..\VERIFICATION.txt" />
75-
<file src="..\bin\*.dll" target="tools" />
76-
<file src="..\bin\*.exe" target="tools" />
44+
<file src="..\bin\net5.0-windows\*.dll" target="tools" />
45+
<file src="..\bin\net5.0-windows\*.exe" target="tools" />
46+
<file src="..\bin\net5.0-windows\*.runtimeconfig.json" target="tools" />
7747
<file src="*.ps1" target="tools" />
7848
</files>
7949
</package>

MouseTrap/src/Forms/ConfigFrom.Designer.cs

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

MouseTrap/src/Forms/DiagnosticForm.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public DiagnosticForm(ServiceThread service)
3939
this.BtnCopy.Click += delegate {
4040
var sb = new StringBuilder();
4141

42+
// update log infos
43+
LogfileBox.Text = string.Empty;
44+
InitLogFileInfos();
45+
4246
sb.AppendLine(InfosBox.Text);
4347
sb.AppendLine();
4448
sb.AppendLine();

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ different resolutions and scaling settings.
88

99
## Min requirements
1010

11-
This tool needs the dpiAwareness API `PerMonitorV2` first introduced in **Windows 10 Creators update**.<br>
12-
So **for this tool to function correctly** you should have at least **Windows build 1703**
11+
For this tool to function correctly you should have:
12+
13+
- At least **Windows 10 Creators update** (Build 1703)
14+
- [**.NET 5 Runtime**](https://dotnet.microsoft.com/download/dotnet/current/runtime) (in most cases it will notify you if the runtime is missing)
1315

1416

1517
## Download and Setup
@@ -20,7 +22,7 @@ You can find the latest release here:
2022
You can install MouseTrap with **chocolatey**:
2123
```Powershell
2224
# install the package
23-
choco install mousetrap --version 1.0.2
25+
choco install mousetrap
2426
2527
# running it
2628
mousetrap
@@ -34,6 +36,21 @@ mousetrap
3436
>```
3537
>*[Why Chocolatey](https://chocolatey.org/docs/why) + [installation](https://chocolatey.org/docs/installation)*
3638
39+
40+
## Changelog
41+
42+
### Version 1.0.6
43+
44+
- **Migrate to .NET 5** _(from legacy .NET Framework)_
45+
- Adds **Diagnostic Window**
46+
- Realtime Log Viewer
47+
- Configutation Viewer
48+
- LogFile Viewer
49+
- Implements a **potential fix** for **[#2 Unexpected Cursor Teleportation](https://github.com/r-Larch/MouseTrap/issues/2)**
50+
- Adds an option to **disable Mouse teleportation** - That's usefull while gaming in fullscreen!
51+
- Lots of smaller bugfixes
52+
53+
3754
## Usage and Configuration
3855
3956
You can always find your running **MouseTrap** app as a system-tray icon in the right corner of your Taskbar.

appveyor.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: Visual Studio 2017
1+
image: Visual Studio 2019
22

33
version: 1.0.{build}
44
configuration: Release
@@ -24,10 +24,10 @@ build:
2424
project: MouseTrap.sln
2525

2626
after_build:
27-
- ps: .\build\Build-Release.ps1 $env:appveyor_build_version
27+
- ps: .\build\Create-Artifacts.ps1 $env:appveyor_build_version
2828

2929
artifacts:
30-
- path: MouseTrap\bin\*.exe
30+
- path: MouseTrap\bin\*.zip
3131
- path: MouseTrap\bin\*.nupkg
3232

3333
deploy:
@@ -36,9 +36,12 @@ deploy:
3636
prerelease: true
3737
draft: false
3838
description: |
39-
MouseTrap.exe is a portable executable.
40-
Download and copy it to some safe place (where you don't delete it by mistake)
41-
and double click it to run.
39+
MouseTrap is a portable application.
40+
Download the *.zip archive and extract it to some safe place (where you don't delete it by mistake)
41+
and double click mousetrap.exe to run it.
42+
43+
Please download and install [**.NET 5 Runtime**](https://dotnet.microsoft.com/download/dotnet/current/runtime)
44+
if you have trouble running it (in most cases it will notify you with a simple message dialog).
4245
4346
[Documentation + Help](https://github.com/r-Larch/MouseTrap/blob/master/README.md)
4447

build/Build-Release.ps1 renamed to build/Create-Artifacts.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ $DistFolder = [System.IO.Path]::Combine($Root, "dist");
2222
$TempFolder = [System.IO.Path]::Combine($Root, "temp");
2323
$ReadmeFile = [System.IO.Path]::Combine($Root, "README.md");
2424
$ProjectRoot = [System.IO.Path]::Combine($Root, "MouseTrap");
25+
$BuildDir = [System.IO.Path]::Combine($ProjectRoot, "bin\net5.0-windows");
2526
$OutputDir = [System.IO.Path]::Combine($ProjectRoot, "bin");
26-
$chocoNuspec = [System.IO.Path]::Combine($ProjectRoot, "choco/MouseTrap.nuspec");
27-
$AssemblyInfo = [System.IO.Path]::Combine($ProjectRoot, "Properties/AssemblyInfo.cs");
27+
$chocoNuspec = [System.IO.Path]::Combine($ProjectRoot, "choco\MouseTrap.nuspec");
28+
$AssemblyInfo = [System.IO.Path]::Combine($ProjectRoot, "Properties\AssemblyInfo.cs");
2829

2930
$GithubGetRepoApi = "https://api.github.com/repos/r-Larch/MouseTrap";
3031

@@ -120,6 +121,18 @@ function Main() {
120121
# Zip $OutputDir "$DistFolder\MouseTrap.$ReleaseVersionNumber.zip";
121122

122123

124+
# Release Artifact ==================
125+
126+
CleanDir $TempFolder;
127+
[System.IO.Directory]::CreateDirectory($TempFolder);
128+
Copy-Item "$([System.IO.Path]::Combine($BuildDir, "*.exe"))" "$TempFolder\";
129+
Copy-Item "$([System.IO.Path]::Combine($BuildDir, "*.dll"))" "$TempFolder\";
130+
Copy-Item "$([System.IO.Path]::Combine($BuildDir, "*.pdb"))" "$TempFolder\";
131+
Copy-Item "$([System.IO.Path]::Combine($BuildDir, "*.runtimeconfig.json"))" "$TempFolder\";
132+
Zip $TempFolder "$OutputDir\MouseTrap.$ReleaseVersionNumber.zip";
133+
CleanDir $TempFolder;
134+
135+
123136
# choco =============================
124137

125138
ChocoPack $chocoNuspec $OutputDir;
@@ -131,10 +144,6 @@ function Main() {
131144
#[Git]::Stage("$DistFolder\MouseTrap.$ReleaseVersionNumber.nupkg");
132145
#[Git]::Commit("$tag binarys");
133146

134-
135-
# cleanup =============================
136-
137-
CleanDir $TempFolder;
138147
}
139148

140149

images/settings-screen.jpg

-108 KB
Loading

0 commit comments

Comments
 (0)