From c70875e0ba93151a19c7b48e3d66dfe9ed556171 Mon Sep 17 00:00:00 2001 From: AtlasLinden <114031241+AtlasLinden@users.noreply.github.com> Date: Thu, 10 Jul 2025 08:56:37 -0700 Subject: Redirecting viewer installation to Application directory --- .github/workflows/qatest.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/qatest.yaml b/.github/workflows/qatest.yaml index db6268e200..ba2c0ed6d9 100644 --- a/.github/workflows/qatest.yaml +++ b/.github/workflows/qatest.yaml @@ -501,7 +501,9 @@ jobs: echo "✅ DMG mounted at $MOUNT_POINT" - # Find the app in the mounted DMG + echo "Installing application to default location from DMG..." + + # Find the .app bundle in the DMG APP_PATH=$(find "$MOUNT_POINT" -name "*.app" -type d | head -1) if [ -z "$APP_PATH" ]; then @@ -509,18 +511,17 @@ jobs: exit 1 fi - echo "Installing application to Applications folder..." - - # Copy the app to the Applications folder (or specified install path) - rsync -a --inplace "$APP_PATH" "${{ matrix.install-path }}/" + # Use the default macOS installer to copy the .app to /Applications + cp -R "$APP_PATH" /Applications/ # Verify the app was copied successfully - if [ ! -d "${{ matrix.install-path }}/$(basename \"$APP_PATH\")" ]; then - echo "❌ Error: Failed to install application to ${{ matrix.install-path }}!" + APP_NAME=$(basename "$APP_PATH") + if [ ! -d "/Applications/$APP_NAME" ]; then + echo "❌ Error: Failed to install application to /Applications!" exit 1 fi - echo "✅ Application installed successfully to ${{ matrix.install-path }}" + echo "✅ Application installed successfully to /Applications" # Save mount point for cleanup echo "MOUNT_POINT=$MOUNT_POINT" >> $GITHUB_ENV -- cgit v1.3