From 0a4b0951f131f068444ece9e9f607fa7a159f780 Mon Sep 17 00:00:00 2001 From: Io Chen Date: Thu, 30 May 2024 20:56:29 +0800 Subject: [PATCH] mpv: Change source --- bucket/mpv/mpv.json | 32 ++++++-------------- deprecated/mpv.json | 73 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 23 deletions(-) create mode 100644 deprecated/mpv.json diff --git a/bucket/mpv/mpv.json b/bucket/mpv/mpv.json index 0a03936..e1e9e2e 100644 --- a/bucket/mpv/mpv.json +++ b/bucket/mpv/mpv.json @@ -1,5 +1,5 @@ { - "version": "20240529", + "version": "20240530", "description": "Video player based on MPlayer/mplayer2 (builds by shinchiro)", "homepage": "https://mpv.io", "license": "LGPL-2.1-or-later,GPL-2.0-or-later", @@ -16,27 +16,13 @@ "architecture": { "64bit": { "url": [ - "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20240529/mpv-x86_64-v3-20240529-git-7ff6cf8.7z", + "https://github.com/mitzsch/mpv-winbuild/releases/download/2024-05-30-c296824/mpv-x86_64-v3-20240530-git-3334a3b.7z", "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/mpv.conf", "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/profiles.conf", "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/script-opts.conf" ], "hash": [ - "3265fae7c86513c68ea8a563cfc662d23af337a76dbefb92974bcd061c62d6c8", - "b722865bd7f1358ef27255466aa4fcc1f19d26e9858cd526b274b5bb2e6a208a", - "B1E5B0CBC9FF91C39C8404F9CE7C0055B6826EF48C9E82285047028E6BA032CC", - "7A7FFDE284446354009DD043D58C61BB9E413BF8E07347D8BF28F48E722271EF" - ] - }, - "32bit": { - "url": [ - "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20240529/mpv-i686-20240529-git-7ff6cf8.7z", - "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/mpv.conf", - "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/profiles.conf", - "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/script-opts.conf" - ], - "hash": [ - "59ac20e3c4364ab417c167d30899a17e869d0d8488c603a34ec42bbef4dc10fa", + "1f22b6c07d8b06b1c1e3f4a66332852e9142cffa21b12be2f197fbcb63c7aeb0", "b722865bd7f1358ef27255466aa4fcc1f19d26e9858cd526b274b5bb2e6a208a", "B1E5B0CBC9FF91C39C8404F9CE7C0055B6826EF48C9E82285047028E6BA032CC", "7A7FFDE284446354009DD043D58C61BB9E413BF8E07347D8BF28F48E722271EF" @@ -56,18 +42,18 @@ ], "persist": "portable_config", "checkver": { - "url": "https://api.github.com/repos/shinchiro/mpv-winbuild-cmake/releases/latest", + "url": "https://api.github.com/repos/mitzsch/mpv-winbuild/releases/latest", "jsonpath": "$.assets[*].browser_download_url", - "regex": "mpv-x86_64-v3-(\\d+)-git-(?[\\da-f]+)\\.7z" + "regex": "download/(?\\d+-\\d+-\\d+-[\\da-f]+)/mpv-x86_64-v3-(\\d+)-git-(?[\\da-f]+)\\.7z" }, "autoupdate": { "architecture": { "64bit": { - "url": "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/$version/mpv-x86_64-v3-$version-git-$matchCommit.7z" - }, - "32bit": { - "url": "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/$version/mpv-i686-$version-git-$matchCommit.7z" + "url": "https://github.com/mitzsch/mpv-winbuild/releases/download/$matchTag/mpv-x86_64-v3-$version-git-$matchCommit.7z" } + }, + "hash": { + "url": "https://github.com/mitzsch/mpv-winbuild/releases/download/$matchTag/sha256.txt" } } } diff --git a/deprecated/mpv.json b/deprecated/mpv.json new file mode 100644 index 0000000..0a03936 --- /dev/null +++ b/deprecated/mpv.json @@ -0,0 +1,73 @@ +{ + "version": "20240529", + "description": "Video player based on MPlayer/mplayer2 (builds by shinchiro)", + "homepage": "https://mpv.io", + "license": "LGPL-2.1-or-later,GPL-2.0-or-later", + "notes": [ + "To set and unset file type associations and AutoPlay handlers, run '$dir\\installer\\mpv-install.bat' and '$dir\\installer\\mpv-uninstall.bat' as administrator, respectively.", + "You can use Icaros ('nonportable/icaros-np') to enable thumbnails for all media types.", + "Modify '$dir\\portable_config\\settings.conf' to configure" + ], + "suggest": { + "yt-dlp": "yt-dlp", + "ffmpeg": "ffmpeg", + "uosc": "self/uosc" + }, + "architecture": { + "64bit": { + "url": [ + "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20240529/mpv-x86_64-v3-20240529-git-7ff6cf8.7z", + "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/mpv.conf", + "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/profiles.conf", + "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/script-opts.conf" + ], + "hash": [ + "3265fae7c86513c68ea8a563cfc662d23af337a76dbefb92974bcd061c62d6c8", + "b722865bd7f1358ef27255466aa4fcc1f19d26e9858cd526b274b5bb2e6a208a", + "B1E5B0CBC9FF91C39C8404F9CE7C0055B6826EF48C9E82285047028E6BA032CC", + "7A7FFDE284446354009DD043D58C61BB9E413BF8E07347D8BF28F48E722271EF" + ] + }, + "32bit": { + "url": [ + "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20240529/mpv-i686-20240529-git-7ff6cf8.7z", + "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/mpv.conf", + "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/profiles.conf", + "https://raw.githubusercontent.com/Youxikong/selfscoop/master/scripts/script-opts.conf" + ], + "hash": [ + "59ac20e3c4364ab417c167d30899a17e869d0d8488c603a34ec42bbef4dc10fa", + "b722865bd7f1358ef27255466aa4fcc1f19d26e9858cd526b274b5bb2e6a208a", + "B1E5B0CBC9FF91C39C8404F9CE7C0055B6826EF48C9E82285047028E6BA032CC", + "7A7FFDE284446354009DD043D58C61BB9E413BF8E07347D8BF28F48E722271EF" + ] + } + }, + "post_install": [ + "'mpv.conf','profiles.conf','script-opts.conf' | foreach { Move-Item $dir\\$_ -Destination $dir\\portable_config -Force }", + "if ( !( Test-Path $dir\\portable_config\\settings.conf ) ) { New-Item -Path $dir\\portable_config\\settings.conf | Out-Null }" + ], + "env_add_path": ".", + "shortcuts": [ + [ + "mpv.exe", + "mpv" + ] + ], + "persist": "portable_config", + "checkver": { + "url": "https://api.github.com/repos/shinchiro/mpv-winbuild-cmake/releases/latest", + "jsonpath": "$.assets[*].browser_download_url", + "regex": "mpv-x86_64-v3-(\\d+)-git-(?[\\da-f]+)\\.7z" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/$version/mpv-x86_64-v3-$version-git-$matchCommit.7z" + }, + "32bit": { + "url": "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/$version/mpv-i686-$version-git-$matchCommit.7z" + } + } + } +}