|
| 1 | +name: FreeRDP |
| 2 | + |
| 3 | +on: workflow_dispatch |
| 4 | + |
| 5 | +jobs: |
| 6 | + build: |
| 7 | + runs-on: windows-latest |
| 8 | + timeout-minutes: 9999 |
| 9 | + |
| 10 | + steps: |
| 11 | + - name: Download Ngrok. |
| 12 | + run: | |
| 13 | + Invoke-WebRequest https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-windows-amd64.zip -OutFile ngrok.zip |
| 14 | + Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/start.bat -OutFile start.bat |
| 15 | + Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/wallpaper.png -OutFile wallpaper.png |
| 16 | + Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/wallpaper.bat -OutFile wallpaper.bat |
| 17 | + Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/loop.bat -OutFile loop.bat |
| 18 | + - name: Download Launcher. |
| 19 | + run: | |
| 20 | + Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/launcher/Node.js.lnk -OutFile Node.js.lnk |
| 21 | + Invoke-WebRequest https://raw.githubusercontent.com/XenosShell/FreeRDP/master/launcher/Visual%20Studio%202019.lnk -OutFile "Visual Studio 2019.lnk" |
| 22 | + - name: Extract Ngrok File. |
| 23 | + run: Expand-Archive ngrok.zip |
| 24 | + - name: Connect to Ngrok. |
| 25 | + run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN |
| 26 | + env: |
| 27 | + NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} |
| 28 | + - name: Enabling access to RDP. |
| 29 | + run: | |
| 30 | + Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0 |
| 31 | + Enable-NetFirewallRule -DisplayGroup "Remote Desktop" |
| 32 | + Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1 |
| 33 | + copy wallpaper.png C:\Users\Public\Desktop\wallpaper.png |
| 34 | + copy wallpaper.bat C:\Users\Public\Desktop\wallpaper.bat |
| 35 | + copy Node.js.lnk C:\Users\Public\Desktop\Node.js.lnk |
| 36 | + copy "Visual Studio 2019.lnk" "C:\Users\Public\Desktop\Visual Studio 2019.lnk" |
| 37 | + - name: Open Tunnel. |
| 38 | + run: Start-Process Powershell -ArgumentList '-Noexit -Command ".\ngrok\ngrok.exe tcp --region ap 3389"' |
| 39 | + - name: Сonnect to your RDP CPU 2 Core - 7GB Ram - 256 SSD. |
| 40 | + run: cmd /c start.bat |
| 41 | + - name: Successfully made!You can close the tab now. |
| 42 | + run: cmd /c loop.bat |
0 commit comments