mirror of
https://github.com/xor-gate/go-socks5-ssh-proxy
synced 2026-03-22 22:06:35 +01:00
use some powershell magic to create dist on windows
This commit is contained in:
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -127,10 +127,31 @@ jobs:
|
|||||||
run: "Get-ChildItem -Path . -Force -Recurse"
|
run: "Get-ChildItem -Path . -Force -Recurse"
|
||||||
|
|
||||||
- name: Run Alcatraz-con.exe on release EXE
|
- name: Run Alcatraz-con.exe on release EXE
|
||||||
run: "./x64/Release/Alcatraz-con.exe dist-release/socks5-ssh-proxy.exe"
|
run: "./x64/Release/Alcatraz-con.exe socks5-ssh-proxy.exe"
|
||||||
|
|
||||||
- name: Run Alcatraz-con.exe on release DLL
|
- name: Run Alcatraz-con.exe on release DLL
|
||||||
run: "./x64/Release/Alcatraz-con.exe dist-release-dll/dll_windows_amd64_v1/go-socks5-ssh-proxy.dll"
|
run: "./x64/Release/Alcatraz-con.exe dll_windows_amd64_v1/go-socks5-ssh-proxy.dll"
|
||||||
|
|
||||||
|
- name: Create dist directory and move obfuscated artifacts
|
||||||
|
run: |
|
||||||
|
# Define source files and destination directory
|
||||||
|
$sourceFiles = @("socks5-ssh-proxy.exe", "dll_windows_amd64_v1/go-socks5-ssh-proxy.dll")
|
||||||
|
$destinationDir = "dist"
|
||||||
|
|
||||||
|
# Create the destination directory if it doesn't exist
|
||||||
|
if (-not (Test-Path -Path $destinationDir)) {
|
||||||
|
New-Item -ItemType Directory -Path $destinationDir
|
||||||
|
}
|
||||||
|
|
||||||
|
# Move each file to the destination directory
|
||||||
|
foreach ($file in $sourceFiles) {
|
||||||
|
if (Test-Path -Path $file) {
|
||||||
|
Move-Item -Path $file -Destination $destinationDir
|
||||||
|
Write-Output "Moved $file to $destinationDir"
|
||||||
|
} else {
|
||||||
|
Write-Output "File $file does not exist"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- name: Store release artifacts
|
- name: Store release artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user