change build.yml and support window-dragging=no

This commit is contained in:
stax76
2023-10-26 17:23:38 +02:00
parent d7e1e32654
commit ea8944c1cc
2 changed files with 6 additions and 5 deletions

View File

@@ -47,21 +47,21 @@ jobs:
cd src cd src
nuget restore nuget restore
msbuild -restore msbuild -restore
msbuild MpvNet.sln /m /p:Configuration=Release msbuild MpvNet.sln /m /p:Configuration=Debug
- name: Download libmpv # In principle, only update this binary file when significant feature changes occur in mpv/mpv.net - name: Download libmpv # In principle, only update this binary file when significant feature changes occur in mpv/mpv.net
shell: msys2 {0} shell: msys2 {0}
run: | run: |
wget -nv -O libmpv.7z https://downloads.sourceforge.net/mpv-player-windows/mpv-dev-x86_64-v3-20231022-git-6e428c2.7z wget -nv -O libmpv.7z https://downloads.sourceforge.net/mpv-player-windows/mpv-dev-x86_64-v3-20231022-git-6e428c2.7z
7z x -y libmpv.7z -olibmpv 7z x -y libmpv.7z -olibmpv
cp -f libmpv/libmpv-2.dll src/MpvNet.Windows/bin/Release/ || true cp -f libmpv/libmpv-2.dll src/MpvNet.Windows/bin/Debug/ || true
- name: Download MediaInfo - name: Download MediaInfo
shell: msys2 {0} shell: msys2 {0}
run: | run: |
wget -nv -O MediaInfo.7z https://mediaarea.net/download/binary/libmediainfo0/23.10/MediaInfo_DLL_23.10_Windows_x64_WithoutInstaller.7z wget -nv -O MediaInfo.7z https://mediaarea.net/download/binary/libmediainfo0/23.10/MediaInfo_DLL_23.10_Windows_x64_WithoutInstaller.7z
7z x -y MediaInfo.7z -oMediaInfo 7z x -y MediaInfo.7z -oMediaInfo
cp -f MediaInfo/MediaInfo.dll src/MpvNet.Windows/bin/Release/ || true cp -f MediaInfo/MediaInfo.dll src/MpvNet.Windows/bin/Debug/ || true
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: "mpv.net-win64" name: "mpv.net-win64"
path: src/MpvNet.Windows/bin/Release/ path: src/MpvNet.Windows/bin/Debug/

View File

@@ -1252,7 +1252,8 @@ public partial class MainForm : Form
if (IsCursorPosDifferent(_mouseDownLocation) && if (IsCursorPosDifferent(_mouseDownLocation) &&
WindowState == FormWindowState.Normal && WindowState == FormWindowState.Normal &&
e.Button == MouseButtons.Left && !IsMouseInOsc()) e.Button == MouseButtons.Left && !IsMouseInOsc() &&
Player.GetPropertyBool("window-dragging"))
{ {
var HTCAPTION = new IntPtr(2); var HTCAPTION = new IntPtr(2);
var WM_NCLBUTTONDOWN = 0xA1; var WM_NCLBUTTONDOWN = 0xA1;