Skip to content

Commit ad3a2e2

Browse files
committed
Updated GM.Utility. Signed the assembly.
1 parent f6a29a4 commit ad3a2e2

23 files changed

Lines changed: 609 additions & 28 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In order to use the `BlueUpdate` toolkit, you must have your own web directory i
3333

3434
Before using the `Update` class, you must set the `UpdatableApp.Current`, which represents the currently running application. This must be done in order to check if the currently running application was installed correctly, to set the root directory, etc.. Every application must be inside the directory with the same name as the application itself. The recommended install path format is: *`/MyCompany/My App/My App.exe`*. The root directory of this example is *`/MyCompany`*. This way, you can have multiple applications inside your companies root directory.
3535

36-
When you use the `Update` class for the first time, its static initializer will check if the updater is installed inside the root directory. If I follow the previous path example, the updater would be installed in *`/MyCompany/Updater`*. If the updater is not yet installed, it will install it. The updater is very small (~33 KB).
36+
When you use the `Update` class for the first time, its static initializer will check if the updater is installed inside the root directory. If I follow the previous path example, the updater would be installed in *`/MyCompany/Updater`*. If the updater is not yet installed, it will install it. The updater is very small (~1 MB).
3737

3838
The `Update.Check()` simply checks if the latest version of the application is greater than the current. If it is, then it needs to be updated.
3939
The `Update.Run()` starts the updater application, which will update the currently running application. That is why the currently running application must close immediately after that, otherwise the updater will not be able to update/modify the files of the application.
@@ -133,6 +133,6 @@ protected override void OnStartup(StartupEventArgs e)
133133
## Author and License
134134
Grega Mohorko ([www.mohorko.info](https://www.mohorko.info))
135135

136-
Copyright (c) 2017 Grega Mohorko
136+
Copyright (c) 2018 Grega Mohorko
137137

138138
[Apache License 2.0](./LICENSE)

src/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ ClientBin/
184184
*.dbmdl
185185
*.dbproj.schemaview
186186
*.pfx
187+
*.snk
187188
*.publishsettings
188189
node_modules/
189190
orleans.codegen.cs

src/BlueUpdate/BlueUpdate Updater/App.config

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
MIT License
4+
5+
Copyright (c) 2018 Grega Mohorko
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
25+
Project: BlueUpdate Updater
26+
Created: 2017-10-29
27+
Author: GregaMohorko
28+
-->
229
<configuration>
330
<startup>
431
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />

src/BlueUpdate/BlueUpdate Updater/App.xaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
<Application
1+
<!--
2+
MIT License
3+
4+
Copyright (c) 2018 Grega Mohorko
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
Project: BlueUpdate Updater
25+
Created: 2017-10-29
26+
Author: GregaMohorko
27+
-->
28+
<Application
229
x:Class="BlueUpdate_Updater.App"
330
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
431
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

src/BlueUpdate/BlueUpdate Updater/App.xaml.cs

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1-
using System;
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2018 Grega Mohorko
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
Project: BlueUpdate Updater
25+
Created: 2017-10-29
26+
Author: GregaMohorko
27+
*/
28+
29+
using System;
230
using System.Collections.Generic;
331
using System.Configuration;
432
using System.Data;
@@ -32,7 +60,7 @@ protected override void OnStartup(StartupEventArgs e)
3260

3361
try {
3462
// set the current application as the updater
35-
var assembly =ReflectionUtility.GetAssemblyInformation(ReflectionUtility.GetAssembly(ReflectionUtility.AssemblyType.Application));
63+
var assembly = ReflectionUtility.GetAssemblyInformation(ReflectionUtility.GetAssembly(ReflectionUtility.AssemblyType.APPLICATION));
3664
UpdatableApp.Current = new UpdatableApp(BlueUpdateConstants.UpdaterName, assembly.Version, null, null, BlueUpdateConstants.UpdaterDirectoryName);
3765

3866
// check arguments

src/BlueUpdate/BlueUpdate Updater/BlueUpdate Updater.csproj

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,22 @@
3737
<PropertyGroup>
3838
<ApplicationIcon>BlueUpdate Updater.ico</ApplicationIcon>
3939
</PropertyGroup>
40+
<PropertyGroup>
41+
<SignAssembly>true</SignAssembly>
42+
</PropertyGroup>
43+
<PropertyGroup>
44+
<DelaySign>false</DelaySign>
45+
</PropertyGroup>
46+
<PropertyGroup>
47+
<AssemblyOriginatorKeyFile>GM.StrongNameKey.snk</AssemblyOriginatorKeyFile>
48+
</PropertyGroup>
4049
<ItemGroup>
4150
<Reference Include="ByteSize, Version=1.3.0.0, Culture=neutral, processorArchitecture=MSIL">
4251
<HintPath>..\packages\ByteSize.1.3.0\lib\net45\ByteSize.dll</HintPath>
4352
<Private>True</Private>
4453
</Reference>
45-
<Reference Include="GM.Utility, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
46-
<HintPath>..\packages\GM.Utility.1.0.1\lib\net461\GM.Utility.dll</HintPath>
54+
<Reference Include="GM.Utility, Version=1.2.6.0, Culture=neutral, PublicKeyToken=a1ae152199607549, processorArchitecture=MSIL">
55+
<HintPath>..\packages\GM.Utility.1.2.6\lib\netstandard2.0\GM.Utility.dll</HintPath>
4756
</Reference>
4857
<Reference Include="System" />
4958
<Reference Include="System.Data" />
@@ -96,6 +105,8 @@
96105
<Generator>ResXFileCodeGenerator</Generator>
97106
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
98107
</EmbeddedResource>
108+
<None Include="BlueUpdate Updater.licenseheader" />
109+
<None Include="GM.StrongNameKey.snk" />
99110
<None Include="packages.config" />
100111
<None Include="Properties\Settings.settings">
101112
<Generator>SettingsSingleFileGenerator</Generator>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
extensions: designer.cs generated.cs
2+
extensions: .cs
3+
/*
4+
MIT License
5+
6+
Copyright (c) %CurrentYear% Grega Mohorko
7+
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in all
16+
copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
SOFTWARE.
25+
26+
Project: %Project%
27+
Created: %CreationYear%-%CreationMonth%-%CreationDay%
28+
Author: %UserName%
29+
*/
30+
31+
extensions: .xaml .xml .config .xsd
32+
<!--
33+
MIT License
34+
35+
Copyright (c) %CurrentYear% Grega Mohorko
36+
37+
Permission is hereby granted, free of charge, to any person obtaining a copy
38+
of this software and associated documentation files (the "Software"), to deal
39+
in the Software without restriction, including without limitation the rights
40+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41+
copies of the Software, and to permit persons to whom the Software is
42+
furnished to do so, subject to the following conditions:
43+
44+
The above copyright notice and this permission notice shall be included in all
45+
copies or substantial portions of the Software.
46+
47+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
53+
SOFTWARE.
54+
55+
Project: %Project%
56+
Created: %CreationYear%-%CreationMonth%-%CreationDay%
57+
Author: %UserName%
58+
-->

src/BlueUpdate/BlueUpdate Updater/Presentation/MainWindow.xaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
<Window
1+
<!--
2+
MIT License
3+
4+
Copyright (c) 2018 Grega Mohorko
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
Project: BlueUpdate Updater
25+
Created: 2017-10-29
26+
Author: GregaMohorko
27+
-->
28+
<Window
229
x:Class="BlueUpdate_Updater.Presentation.MainWindow"
330
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
431
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

src/BlueUpdate/BlueUpdate Updater/Presentation/MainWindow.xaml.cs

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1-
using System;
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2018 Grega Mohorko
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
Project: BlueUpdate Updater
25+
Created: 2017-10-29
26+
Author: GregaMohorko
27+
*/
28+
29+
using System;
230
using System.Collections.Generic;
331
using System.ComponentModel;
432
using System.Linq;

src/BlueUpdate/BlueUpdate Updater/Properties/AssemblyInfo.cs

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1-
using System.Reflection;
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2018 Grega Mohorko
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
Project: BlueUpdate Updater
25+
Created: 2017-10-29
26+
Author: GregaMohorko
27+
*/
28+
29+
using System.Reflection;
230
using System.Resources;
331
using System.Runtime.CompilerServices;
432
using System.Runtime.InteropServices;
@@ -12,7 +40,7 @@
1240
[assembly: AssemblyConfiguration("")]
1341
[assembly: AssemblyCompany("Grega Mohorko")]
1442
[assembly: AssemblyProduct("BlueUpdate Updater")]
15-
[assembly: AssemblyCopyright("Copyright © Grega Mohorko 2017")]
43+
[assembly: AssemblyCopyright("Copyright © Grega Mohorko 2018")]
1644
[assembly: AssemblyTrademark("")]
1745
[assembly: AssemblyCulture("")]
1846

@@ -51,5 +79,5 @@
5179
// You can specify all the values or you can default the Build and Revision Numbers
5280
// by using the '*' as shown below:
5381
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.3.0")]
55-
[assembly: AssemblyFileVersion("1.0.3.0")]
82+
[assembly: AssemblyVersion("1.0.3.1")]
83+
[assembly: AssemblyFileVersion("1.0.3.1")]

0 commit comments

Comments
 (0)