Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
Add an embed framework phase
grohith3272871d7ad54a3
diff --git a/.github/workflows/pr-archive-comment.yml b/.github/workflows/pr-archive-comment.ymlnew file mode 100644index 00000000..c44cb47f--- /dev/null+++ b/.github/workflows/pr-archive-comment.yml@@ -0,0 +1,99 @@+name: PR Archive Comment++on:+ workflow_run:+ workflows: ["PR Archive"]+ types: [completed]++permissions:+ actions: read+ issues: write+ pull-requests: read++jobs:+ comment:+ name: Add PR archive download link+ if: github.event.workflow_run.conclusion == 'success'+ runs-on: ubuntu-latest+ timeout-minutes: 5+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ RUN_ID: ${{ github.event.workflow_run.id }}+ EVENT_PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}++ steps:+ # This trusted workflow reads artifact metadata only. Never download or+ # execute artifacts produced by the untrusted pull_request workflow.+ - name: Post archive download link+ run: |+ set -euo pipefail++ if [[ ! "$EVENT_PR_NUMBER" =~ ^[0-9]+$ ]]; then+ echo "The completed workflow run is not associated with a pull request." >&2+ exit 1+ fi++ ARTIFACT=$(+ gh api "repos/$GITHUB_REPOSITORY/actions/runs/$RUN_ID/artifacts" \+ --jq '.artifacts+ | map(select((.expired == false) and (.name | startswith("FluidVoice-PR-"))))+ | sort_by(.created_at)+ | last+ | [.id, .name]+ | @tsv'+ )+ IFS=$'\t' read -r ARTIFACT_ID ARTIFACT_NAME <<< "$ARTIFACT"++ EXPECTED_PREFIX="FluidVoice-PR-$EVENT_PR_NUMBER-"+ if [[ ! "$ARTIFACT_ID" =~ ^[0-9]+$ ]]; then+ echo "No valid archive artifact was found for PR #$EVENT_PR_NUMBER." >&2+ exit 1+ fi+ if [[ "$ARTIFACT_NAME" =~ ^${EXPECTED_PREFIX}([0-9a-f]{12})$ ]]; then+ ARTIFACT_SHORT_SHA="${BASH_REMATCH[1]}"+ else+ echo "The archive artifact name does not match PR #$EVENT_PR_NUMBER." >&2+ exit 1+ fi++ CURRENT_HEAD_SHA=$(+ gh api "repos/$GITHUB_REPOSITORY/pulls/$EVENT_PR_NUMBER" --jq '.head.sha'+ )+ if [[ "${CURRENT_HEAD_SHA:0:12}" != "$ARTIFACT_SHORT_SHA" ]]; then+ echo "Skipping a superseded artifact for PR #$EVENT_PR_NUMBER."+ exit 0+ fi++ ARTIFACT_URL="https://github.com/$GITHUB_REPOSITORY/actions/runs/$RUN_ID/artifacts/$ARTIFACT_ID"+ RUN_URL="https://github.com/$GITHUB_REPOSITORY/actions/runs/$RUN_ID"+ MARKER='<!-- fluidvoice-pr-archive -->'+ BODY=$(cat <<EOF+ $MARKER+ ### FluidVoice PR build ready++ [Download \`$ARTIFACT_NAME\`]($ARTIFACT_URL)++ The artifact contains the app ZIP, Xcode archive, build manifest, and unsigned-app instructions. It expires 5 days after the build.++ [View workflow run]($RUN_URL)+ EOF+ )++ COMMENT_ID=$(+ gh api --paginate \+ "repos/$GITHUB_REPOSITORY/issues/$EVENT_PR_NUMBER/comments" \+ --jq '.[] | select(.body | contains("<!-- fluidvoice-pr-archive -->")) | .id' \+ | sed -n '1p'+ )++ if [[ -n "$COMMENT_ID" ]]; then+ gh api --method PATCH \+ "repos/$GITHUB_REPOSITORY/issues/comments/$COMMENT_ID" \+ -f body="$BODY" \+ >/dev/null+ else+ gh api --method POST \+ "repos/$GITHUB_REPOSITORY/issues/$EVENT_PR_NUMBER/comments" \+ -f body="$BODY" \+ >/dev/null+ fidiff --git a/.github/workflows/pr-archive.yml b/.github/workflows/pr-archive.ymlindex bbb7f1a8..918c1b5e 100644--- a/.github/workflows/pr-archive.yml+++ b/.github/workflows/pr-archive.yml@@ -105,6 +105,21 @@ jobs:test -d "$APP_PATH"test -f "$INFO_PLIST"test -x "$EXECUTABLE_PATH"+ test -x "$APP_PATH/Contents/Frameworks/MediaRemoteAdapter.framework/Versions/A/MediaRemoteAdapter"++ RPATH_DEPENDENCY_COUNT=0+ while IFS= read -r DEPENDENCY; do+ RPATH_DEPENDENCY_COUNT=$((RPATH_DEPENDENCY_COUNT + 1))+ EMBEDDED_PATH="$APP_PATH/Contents/Frameworks/${DEPENDENCY#@rpath/}"+ if [[ ! -e "$EMBEDDED_PATH" ]]; then+ echo "Missing embedded runtime dependency: $DEPENDENCY" >&2+ exit 1+ fi+ done < <(otool -L "$EXECUTABLE_PATH" | awk '$1 ~ /^@rpath\// { print $1 }')+ if [[ "$RPATH_DEPENDENCY_COUNT" -eq 0 ]]; then+ echo "Expected at least one bundled @rpath dependency." >&2+ exit 1+ fiACTUAL_BUNDLE_IDENTIFIER=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' "$INFO_PLIST")if [[ "$ACTUAL_BUNDLE_IDENTIFIER" != "$BUNDLE_IDENTIFIER" ]]; then@@ -196,5 +211,5 @@ jobs:name: ${{ steps.package.outputs.artifact-name }}path: ${{ steps.package.outputs.artifact-path }}if-no-files-found: error- retention-days: 14+ retention-days: 5compression-level: 0diff --git a/Fluid.xcodeproj/project.pbxproj b/Fluid.xcodeproj/project.pbxprojindex a2cb0a9f..b8c8c879 100644--- a/Fluid.xcodeproj/project.pbxproj+++ b/Fluid.xcodeproj/project.pbxproj@@ -10,6 +10,7 @@7C078DA52E3B386A00FB7CAC /* FluidAudio in Frameworks */ = {isa = PBXBuildFile; productRef = 7C078DA42E3B386A00FB7CAC /* FluidAudio */; };7C3697892ED70F9C005874CE /* DynamicNotchKit in Frameworks */ = {isa = PBXBuildFile; productRef = 7C3697882ED70F9C005874CE /* DynamicNotchKit */; };7C5AF14B2F15041600DE21B0 /* MediaRemoteAdapter in Frameworks */ = {isa = PBXBuildFile; productRef = 7C5AF14A2F15041600DE21B0 /* MediaRemoteAdapter */; };+ 7C5AF14C2F15041600DE21B0 /* MediaRemoteAdapter in Embed Frameworks */ = {isa = PBXBuildFile; productRef = 7C5AF14A2F15041600DE21B0 /* MediaRemoteAdapter */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };7C9A71022F58B00000FB7CAF /* TranscribeCpp in Frameworks */ = {isa = PBXBuildFile; productRef = 7C9A71012F58B00000FB7CAF /* TranscribeCpp */; };7C91B0012F42AA0100C0DEF0 /* HotkeyShortcutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C91B0022F42AA0100C0DEF0 /* HotkeyShortcutTests.swift */; };7CDB0A2D2F3C4D5600FB7CAD /* DictationE2ETests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CDB0A292F3C4D5600FB7CAD /* DictationE2ETests.swift */; };@@ -31,6 +32,20 @@};/* End PBXContainerItemProxy section */+/* Begin PBXCopyFilesBuildPhase section */+ 7C5AF14D2F15041600DE21B0 /* Embed Frameworks */ = {+ isa = PBXCopyFilesBuildPhase;+ buildActionMask = 2147483647;+ dstPath = "";+ dstSubfolderSpec = 10;+ files = (+ 7C5AF14C2F15041600DE21B0 /* MediaRemoteAdapter in Embed Frameworks */,+ );+ name = "Embed Frameworks";+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXCopyFilesBuildPhase section */+/* Begin PBXFileReference section */7C078D8F2E3B339200FB7CAC /* FluidVoice Debug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "FluidVoice Debug.app"; sourceTree = BUILT_PRODUCTS_DIR; };7CDB0A202F3C4D5600FB7CAD /* FluidDictationIntegrationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FluidDictationIntegrationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };@@ -147,6 +162,7 @@buildPhases = (7C078D8B2E3B339200FB7CAC /* Sources */,7C078D8C2E3B339200FB7CAC /* Frameworks */,+ 7C5AF14D2F15041600DE21B0 /* Embed Frameworks */,7C078D8D2E3B339200FB7CAC /* Resources */,);buildRules = (