Skip to content

Commit

Permalink
添加workflows、修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pdone committed Jun 18, 2024
1 parent c503aef commit 0fd9a00
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test

on:
push:
branches: [dev]
pull_request:
branches: [master]

jobs:
build:
runs-on: windows-latest
env:
PRJ_NAME: FreeControl

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Restore NuGet Packages
run: nuget restore FreeControl.sln

- name: Build
run: msbuild FreeControl.sln /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath="output"

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: $PRJ_NAME
path: $PRJ_NAME\output\$PRJ_NAME.exe
1 change: 1 addition & 0 deletions FreeControl/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion FreeControl/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,10 @@ private void StartButtonClick(object sender, EventArgs e)
// 设置标题
StartParameters.Add($"--window-title \"{Info.ScrcpyTitle}\"");
// 设置断开后锁定屏幕
StartParameters.Add("--power-off-on-close");
if (_Setting.PowerOffOnClose)
{
StartParameters.Add("--power-off-on-close");
}
StartParameters.Add(_Setting.CustomArgs);
if (_Setting.AudioEnabled == false) StartParameters.Add(_Setting.GetDesc("AudioEnabled"));// 不转发音频

Expand Down
4 changes: 2 additions & 2 deletions FreeControl/Main.resx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZT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