From 798e20b2c4c64f2bf3d3c604dcf7954e2ebe5933 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 6 Sep 2024 12:15:39 +0200 Subject: [PATCH] bugfix: recursively scan directories for releases --- .github/workflows/publish.yml | 2 +- install.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1e3f9ec..8600264 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -66,7 +66,7 @@ jobs: - name: Zip artifacts for release run: | cd artifacts/ - zip ../ProxySwitcher.zip * + zip -r ../ProxySwitcher.zip * - name: Create release env: diff --git a/install.ps1 b/install.ps1 index 4d25f1a..2cc44ae 100644 --- a/install.ps1 +++ b/install.ps1 @@ -37,7 +37,7 @@ if ($isRelease) { # Copy release assets to program dir Write-Host "Copying program into local directory..." -ForegroundColor Cyan - Copy-Item -Path "$releaseDir\*" -Destination $programPath -Force + Copy-Item -Path "$releaseDir\*" -Destination $programPath -Recurse -Force } else { # Download release files from github as-is