5.4.8.5 Beta
This commit is contained in:
14
Changelog.md
14
Changelog.md
@@ -1,13 +1,21 @@
|
|||||||
|
|
||||||
5.4.8.5 Beta (not yet released)
|
5.4.8.6 Beta (not yet released)
|
||||||
|
============
|
||||||
|
|
||||||
|
5.4.8.5 Beta
|
||||||
============
|
============
|
||||||
|
|
||||||
- Load AviSynth DLL from environment variable AviSynthDLL
|
- Load AviSynth DLL from environment variable AviSynthDLL
|
||||||
in order to support AviSynth portable mode.
|
in order to support AviSynth portable mode.
|
||||||
- New option global-media-keys (next, previous, play/pause, stop).
|
- New option global-media-keys (next, previous, play/pause, stop).
|
||||||
- Redesigned PowerShell based setup and setup dialog.
|
- Redesigned PowerShell based setup and setup dialog, it was done
|
||||||
|
because of a bug and upcoming chocolately and winget integration.
|
||||||
|
- Redesigned auto update using different file name, using zip instead
|
||||||
|
of 7zip format now, 7zip distribution will shortly get dropped.
|
||||||
- Whenever there is a new startup location, the setup dialog is shown.
|
- Whenever there is a new startup location, the setup dialog is shown.
|
||||||
- libmpv updated to shinshiro 2020-11-22.
|
- libmpv updated to shinshiro 2020-12-06
|
||||||
|
- youtube-dl is no longer included, users have to install it
|
||||||
|
on their own (put it in the startup or a PATH folder).
|
||||||
|
|
||||||
|
|
||||||
5.4.8.4 Beta
|
5.4.8.4 Beta
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ Installation
|
|||||||
|
|
||||||
mpv.net requires the .NET Framework 4.8 and Windows 7 or 10 and a modern graphics card.
|
mpv.net requires the .NET Framework 4.8 and Windows 7 or 10 and a modern graphics card.
|
||||||
|
|
||||||
There is a setup and a portable download in the 7zip and Zip archive format.
|
There is a setup exe and a portable zip file download.
|
||||||
|
|
||||||
x64 editions have the advantage of being typically better optimized and tested.
|
x64 editions have the advantage of being typically better optimized and tested.
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace mpvnet
|
|||||||
var response = await client.GetAsync("https://api.github.com/repos/stax76/mpv.net/releases/latest");
|
var response = await client.GetAsync("https://api.github.com/repos/stax76/mpv.net/releases/latest");
|
||||||
response.EnsureSuccessStatusCode();
|
response.EnsureSuccessStatusCode();
|
||||||
string content = await response.Content.ReadAsStringAsync();
|
string content = await response.Content.ReadAsStringAsync();
|
||||||
Match match = Regex.Match(content, @"""mpv\.net-portable-x64-([\d\.]+)\.7z""");
|
Match match = Regex.Match(content, @"""mpv\.net-([\d\.]+)-portable-x64\.zip""");
|
||||||
Version onlineVersion = Version.Parse(match.Groups[1].Value);
|
Version onlineVersion = Version.Parse(match.Groups[1].Value);
|
||||||
Version currentVersion = Assembly.GetEntryAssembly().GetName().Version;
|
Version currentVersion = Assembly.GetEntryAssembly().GetName().Version;
|
||||||
|
|
||||||
@@ -49,14 +49,14 @@ namespace mpvnet
|
|||||||
$"New version {onlineVersion} is available, update now?") == MsgResult.OK)
|
$"New version {onlineVersion} is available, update now?") == MsgResult.OK)
|
||||||
{
|
{
|
||||||
string arch = IntPtr.Size == 8 ? "64" : "86";
|
string arch = IntPtr.Size == 8 ? "64" : "86";
|
||||||
string url = $"https://github.com/stax76/mpv.net/releases/download/{onlineVersion}/mpv.net-portable-x{arch}-{onlineVersion}.7z";
|
string url = $"https://github.com/stax76/mpv.net/releases/download/{onlineVersion}/mpv.net-{onlineVersion}-portable-x{arch}.zip";
|
||||||
|
|
||||||
using (Process proc = new Process())
|
using (Process proc = new Process())
|
||||||
{
|
{
|
||||||
proc.StartInfo.UseShellExecute = true;
|
proc.StartInfo.UseShellExecute = true;
|
||||||
proc.StartInfo.WorkingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
|
proc.StartInfo.WorkingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
|
||||||
proc.StartInfo.FileName = "PowerShell";
|
proc.StartInfo.FileName = "powershell.exe";
|
||||||
proc.StartInfo.Arguments = $"-NoLogo -NoExit -File \"{Folder.Startup + "Update.ps1"}\" \"{url}\" \"{Folder.Startup.TrimEnd(Path.DirectorySeparatorChar)}\"";
|
proc.StartInfo.Arguments = $"-NoLogo -NoExit -File \"{Folder.Startup + "Setup\\update.ps1"}\" \"{url}\" \"{Folder.Startup.TrimEnd(Path.DirectorySeparatorChar)}\"";
|
||||||
|
|
||||||
if (Folder.Startup.Contains("Program Files"))
|
if (Folder.Startup.Contains("Program Files"))
|
||||||
proc.StartInfo.Verb = "runas";
|
proc.StartInfo.Verb = "runas";
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("5.4.8.4")]
|
[assembly: AssemblyVersion("5.4.8.5")]
|
||||||
[assembly: AssemblyFileVersion("5.4.8.4")]
|
[assembly: AssemblyFileVersion("5.4.8.5")]
|
||||||
|
|||||||
@@ -1,70 +0,0 @@
|
|||||||
|
|
||||||
$ErrorActionPreference = 'Stop'
|
|
||||||
|
|
||||||
if ($args.Length -ne 2) {
|
|
||||||
Write-Host 'Invalid arguments' -ForegroundColor Red
|
|
||||||
pause
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
if (-not (Get-Command curl.exe)) {
|
|
||||||
Write-Host 'Error using curl.exe' -ForegroundColor Red
|
|
||||||
pause
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($PSVersionTable.PSVersion.Major -lt 5) {
|
|
||||||
Write-Host 'PowerShell 5.1 not found' -ForegroundColor Red
|
|
||||||
pause
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
Add-Type -AssemblyName Microsoft.VisualBasic
|
|
||||||
|
|
||||||
# Delete directory using recycle bin
|
|
||||||
function Remove-Directory($directory) {
|
|
||||||
if (Test-Path $directory) {
|
|
||||||
[Microsoft.VisualBasic.FileIO.FileSystem]::
|
|
||||||
DeleteDirectory($directory, 'OnlyErrorDialogs', 'SendToRecycleBin')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$currentDir = $args[1];
|
|
||||||
|
|
||||||
$targetDir = (Split-Path $currentDir) + "\new version"
|
|
||||||
Remove-Directory $targetDir
|
|
||||||
$targetFile = $targetDir + '.7z'
|
|
||||||
Remove-Item $targetFile -Force -ErrorAction Ignore
|
|
||||||
|
|
||||||
Write-Host 'Download new version' -ForegroundColor Green
|
|
||||||
curl.exe $args[0] --location --output $targetFile
|
|
||||||
if ($LastExitCode) { throw $LastExitCode }
|
|
||||||
|
|
||||||
Write-Host 'Unpack new version' -ForegroundColor Green
|
|
||||||
& ($currentDir + '\7z\7za.exe') x -y $targetFile -o"$targetDir"
|
|
||||||
if ($LastExitCode) { throw $LastExitCode }
|
|
||||||
|
|
||||||
Write-Host 'Delete downloaded file' -ForegroundColor Green
|
|
||||||
Remove-Item $targetFile -Force -Recurse
|
|
||||||
|
|
||||||
$portableConfigDir = $currentDir + '\portable_config'
|
|
||||||
$portableConfigTempDir = (Split-Path $currentDir) + '\portable config dir temp'
|
|
||||||
Remove-Item $portableConfigTempDir -Force -ErrorAction Ignore
|
|
||||||
|
|
||||||
if (Test-Path $portableConfigDir) {
|
|
||||||
Write-Host 'Backup portable config' -ForegroundColor Green
|
|
||||||
Copy-Item $portableConfigDir $portableConfigTempDir -Recurse -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host 'Delete current version' -ForegroundColor Green
|
|
||||||
Remove-Directory $currentDir
|
|
||||||
|
|
||||||
Write-Host 'Rename directory' -ForegroundColor Green
|
|
||||||
Rename-Item $targetDir (Split-Path $currentDir -Leaf)
|
|
||||||
|
|
||||||
if (Test-Path $portableConfigTempDir) {
|
|
||||||
Write-Host 'Restore portable config' -ForegroundColor Green
|
|
||||||
Move-Item $portableConfigTempDir $portableConfigDir -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host 'Update is complete' -ForegroundColor Green
|
|
||||||
@@ -102,9 +102,6 @@
|
|||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Resources\theme.txt" />
|
<Content Include="Resources\theme.txt" />
|
||||||
<None Include="Update.ps1">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
<Page Include="WPF\SearchTextBoxUserControl.xaml">
|
<Page Include="WPF\SearchTextBoxUserControl.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
|||||||
Reference in New Issue
Block a user