File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 88jobs :
99
1010 build :
11-
11+
1212 strategy :
1313 matrix :
1414 configuration : [Release]
1515
1616 runs-on : windows-latest
17-
17+
1818 env :
1919 Solution_Name : VirtualDesktopTimecodeServer.sln
2020
@@ -24,11 +24,11 @@ jobs:
2424
2525 - name : Setup MSBuild.exe
2626 uses : microsoft/setup-msbuild@v1.0.2
27-
27+
2828 - name : Get Application Version
2929 id : get_version
3030 uses : battila7/get-version-action@v2
31-
31+
3232 - name : Restore the application
3333 run : msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
3434 env :
@@ -41,21 +41,21 @@ jobs:
4141 Appx_Bundle_Platforms : x64
4242 Appx_Package_Build_Mode : StoreUpload
4343 Configuration : ${{ matrix.configuration }}
44-
44+
4545 - name : Upload Artifact 1
4646 uses : svenstaro/upload-release-action@v2
4747 with :
4848 repo_token : ${{ secrets.GITHUB_TOKEN }}
49- file : bin\ Release\ net471\ VirtualDesktopTimecodeServer.dll
49+ file : ./ bin/ Release/ net471/ VirtualDesktopTimecodeServer.dll
5050 asset_name : VirtualDesktopTimecodeServer_${{ steps.get_version.outputs.version }}.dll
5151 tag : ${{ github.ref }}
5252 overwrite : true
53-
53+
5454 - name : Upload Artifact 2
5555 uses : svenstaro/upload-release-action@v2
5656 with :
5757 repo_token : ${{ secrets.GITHUB_TOKEN }}
58- file : inject.bat
58+ file : ./Assets/ inject.bat
5959 asset_name : inject_${{ steps.get_version.outputs.version }}.bat
6060 tag : ${{ github.ref }}
6161 overwrite : true
Original file line number Diff line number Diff line change 1+ @ echo off
2+ for /f " TOKENS=1" %%a in ('wmic PROCESS where " Name='Virtual Desktop.exe'" get ProcessID ^ | findstr [0-9]') do set VirtualDesktopPID = %%a
3+ echo Virtual Desktop PID: %VirtualDesktopPID%
4+ set DllSourceDir = %CD%
5+ for /R %%f in (VirtualDesktopTimecodeServer_*.dll) do set DllFileName = %%f
6+ cd C:\Program Files (x86)\Snoop
7+ Snoop.InjectorLauncher.x64.exe --targetPID %VirtualDesktopPID% --assembly " %DllSourceDir% \%DllFileName% " --className VirtualDesktopTimecodeServer.TimecodeDriver --methodName StartTimecodeServer --settingsFile " "
8+ timeout 5
You can’t perform that action at this time.
0 commit comments