diff --git a/Release.ps1 b/Release.ps1 index 06186a3..b48dc97 100644 --- a/Release.ps1 +++ b/Release.ps1 @@ -1,6 +1,40 @@ $ErrorActionPreference = 'Stop' +$include = @( + '*.cs', + '*.csproj', + '*.iss', + '*.js', + '*.lua', + '*.md', + '*.ps1', + '*.resx', + '*.sln', + '*.txt', + '*.xaml' +) + +$files = Get-ChildItem -Path $PSScriptRoot -Recurse -File -Include $include + +foreach ($file in $files) +{ + $lines = Get-Content $file + + foreach ($line in $lines) + { + foreach ($char in $line.ToCharArray()) + { + $codePoint = [int]$char + + if ($codePoint -gt 127) + { + throw "Non ASCII char $char in file '$($file.FullName)' in line: $line" + } + } + } +} + $desktopDir = [Environment]::GetFolderPath('Desktop') $exePath = $PSScriptRoot + '\mpv.net\bin\x64\mpvnet.exe' $versionInfo = [Diagnostics.FileVersionInfo]::GetVersionInfo($exePath) diff --git a/extensions/RatingExtension/Properties/AssemblyInfo.cs b/extensions/RatingExtension/Properties/AssemblyInfo.cs index b338c1e..1510960 100644 --- a/extensions/RatingExtension/Properties/AssemblyInfo.cs +++ b/extensions/RatingExtension/Properties/AssemblyInfo.cs @@ -6,11 +6,11 @@ using System.Runtime.InteropServices; // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("RatingExtension")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("RatingExtension")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] +[assembly: AssemblyCompany("Frank Skare (stax76)")] [assembly: AssemblyProduct("RatingExtension")] -[assembly: AssemblyCopyright("Copyright © 2017-2019 Frank Skare (stax76)")] +[assembly: AssemblyCopyright("Copyright (C) 2017-2020 Frank Skare (stax76)")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/extensions/ScriptingExtension/Properties/AssemblyInfo.cs b/extensions/ScriptingExtension/Properties/AssemblyInfo.cs index b338c1e..1510960 100644 --- a/extensions/ScriptingExtension/Properties/AssemblyInfo.cs +++ b/extensions/ScriptingExtension/Properties/AssemblyInfo.cs @@ -6,11 +6,11 @@ using System.Runtime.InteropServices; // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("RatingExtension")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("RatingExtension")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] +[assembly: AssemblyCompany("Frank Skare (stax76)")] [assembly: AssemblyProduct("RatingExtension")] -[assembly: AssemblyCopyright("Copyright © 2017-2019 Frank Skare (stax76)")] +[assembly: AssemblyCopyright("Copyright (C) 2017-2020 Frank Skare (stax76)")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")]