From 93891cf9d0e89aeb401348c212dd1ee2ba0e262c Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 25 Jan 2026 20:08:43 -0500 Subject: [PATCH] move build zip rename into script --- .github/workflows/build-smapi.yml | 7 ++----- build/scripts/prepare-install-package.ps1 | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-smapi.yml b/.github/workflows/build-smapi.yml index c6f221d2..b026fcc8 100644 --- a/.github/workflows/build-smapi.yml +++ b/.github/workflows/build-smapi.yml @@ -87,9 +87,6 @@ jobs: Write-Host "Building SMAPI $env:VERSION." ./build/scripts/prepare-install-package.ps1 "$env:VERSION" - - name: Rename build zip - run: mv "bin/SMAPI ${{env.VERSION}} installer.zip" "bin/SMAPI-${{env.VERSION}}-installer.zip" - - name: Upload installer uses: actions/upload-artifact@v4 with: @@ -101,10 +98,10 @@ jobs: uses: ncipollo/release-action@v1 if: github.ref_type == 'tag' with: - artifacts: 'bin/SMAPI-${{env.VERSION}}*.zip' + artifacts: 'bin/SMAPI-${{env.VERSION}}-installer.zip' token: '${{secrets.GITHUB_TOKEN}}' tag: '${{github.ref_name}}' - name: "${{env.VERSION}}" + name: '${{env.VERSION}}' body: | Draft. draft: true diff --git a/build/scripts/prepare-install-package.ps1 b/build/scripts/prepare-install-package.ps1 index fc512714..45e27dec 100644 --- a/build/scripts/prepare-install-package.ps1 +++ b/build/scripts/prepare-install-package.ps1 @@ -283,7 +283,7 @@ foreach ($folder in $folders) { ########### Move-Item "$packagePath" "bin/SMAPI $version installer" -Compress-Archive -Path "bin/SMAPI $version installer" -DestinationPath "bin/SMAPI $version installer.zip" -CompressionLevel Optimal +Compress-Archive -Path "bin/SMAPI $version installer" -DestinationPath "bin/SMAPI-$version-installer.zip" -CompressionLevel Optimal Write-Output "" Write-Output "Done! Package created in ${pwd.Path}/bin."