From 7d31237d5f944b6e9b26acdc05d700cb4c63f684 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Mon, 11 May 2020 17:14:23 +0200 Subject: [PATCH] fix release script --- Release.ps1 | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/Release.ps1 b/Release.ps1 index b322fa3..0aaefa6 100644 --- a/Release.ps1 +++ b/Release.ps1 @@ -1,39 +1,6 @@ $ErrorActionPreference = 'Stop' -$include = @( - '*.cs', - '*.csproj', - '*.iss', - '*.js', - '*.lua', - '*.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)