diff --git a/.github/workflows/build_and_release_all.yml b/.github/workflows/build_and_release_all.yml index 1efa356..6117446 100644 --- a/.github/workflows/build_and_release_all.yml +++ b/.github/workflows/build_and_release_all.yml @@ -108,7 +108,7 @@ jobs: elif [[ "${{ runner.os }}" == "macOS" ]]; then dotnet publish Companion.Desktop/Companion.Desktop.csproj \ -c Release -r osx-${{ matrix.arch }} --self-contained true \ - -p:PublishSingleFile=true -p:UseAppHost=true + -p:PublishSingleFile=false -p:PublishReadyToRun=true -p:UseAppHost=true else dotnet publish Companion.Desktop/Companion.Desktop.csproj \ -c Release -r linux-${{ matrix.arch }} --self-contained true \ @@ -248,7 +248,9 @@ jobs: rm -rf "$APP_DIR" mkdir -p "${APP_DIR}/Contents/MacOS" "${APP_DIR}/Contents/Resources" - cp -R "${PUBLISH_DIR}/"* "${APP_DIR}/Contents/MacOS/" + # Copy the full publish output into the bundle instead of relying on + # single-file extraction at app startup. + ditto "$PUBLISH_DIR" "${APP_DIR}/Contents/MacOS" [[ -f "$ICON_SRC" ]] && cp "$ICON_SRC" "${APP_DIR}/Contents/Resources/OpenIPC.icns" || true if [[ -f "${APP_DIR}/Contents/MacOS/Companion.Desktop" ]]; then