From 2208bd860d1210dbf91a5934e232b64220d80196 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Mon, 18 Nov 2024 00:39:05 -0600 Subject: [PATCH] Fix OS issue --- .github/workflows/reusable.package.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/reusable.package.yml b/.github/workflows/reusable.package.yml index 3c43114..1b3baf5 100644 --- a/.github/workflows/reusable.package.yml +++ b/.github/workflows/reusable.package.yml @@ -76,8 +76,8 @@ jobs: - name: Build Installer (MacOS) if: ${{ runner.os == 'macOS' }} run: | - PKGPROJ_FILE="packaging/${{ env.PLUGIN_NAME }}.pkgproj" - sed -i "s/{{PLUGIN_VERSION}}/${{ env.PLUGIN_VERSION }}/g" "$PKGPROJ_FILE" + PKGPROJ_FILE="packaging/$PLUGIN_NAME.pkgproj" + sed.bak -i "s/{{PLUGIN_VERSION}}/$PLUGIN_VERSION/g" "$PKGPROJ_FILE" packagesbuild "$PKGPROJ_FILE" - name: Sign Installer (MacOS) @@ -135,10 +135,10 @@ jobs: - name: Build Installer (Windows) if: ${{ runner.os == 'Windows' }} run: | - ISS_FILE="packaging/${{ env.PLUGIN_NAME }}.iss" - sed -i "s/{{PLUGIN_NAME}}/${{ env.PLUGIN_NAME }}/g" "$ISS_FILE" - sed -i "s/{{PLUGIN_VERSION}}/${{ env.PLUGIN_VERSION }}/g" "$ISS_FILE" - sed -i "s/{{COMPANY_NAME}}/${{ env.COMPANY_NAME }}/g" "$ISS_FILE" + ISS_FILE="packaging/$PLUGIN_NAME.iss" + sed -i.bak "s/{{PLUGIN_NAME}}/$PLUGIN_NAME/g" "$ISS_FILE" + sed -i.bak "s/{{PLUGIN_VERSION}}/$PLUGIN_VERSION/g" "$ISS_FILE" + sed -i.bak "s/{{COMPANY_NAME}}/$COMPANY_NAME/g" "$ISS_FILE" iscc "packaging\${{ env.PLUGIN_NAME }}.iss" mv "packaging\Output\${{ env.INSTALLER_NAME }}.exe" .