### Build DMG release artifact Source: https://github.com/himomohi/airtranslate/blob/master/Release/README.md Builds a DMG for the pre-notarization GitHub Release install path. ```bash ./Release/build_open_source_release.sh dmg ``` -------------------------------- ### Build and verify launch Source: https://github.com/himomohi/airtranslate/blob/master/docs/DEVELOPMENT.md Use this command to build and verify the app launches. ```bash ./script/build_and_run.sh --verify ``` -------------------------------- ### Release build Source: https://github.com/himomohi/airtranslate/blob/master/docs/DEVELOPMENT.md Build the app in release configuration. ```bash swift build -c release ``` -------------------------------- ### Run the app bundle Source: https://github.com/himomohi/airtranslate/blob/master/docs/DEVELOPMENT.md Use this command to run the AirTranslate app bundle. ```bash ./script/build_and_run.sh ``` -------------------------------- ### Build and run AirTranslate from source Source: https://github.com/himomohi/airtranslate/blob/master/README.md Commands to build and run AirTranslate from source. Use --verify to run verification checks, and swift test to run the test suite. More commands are available in docs/DEVELOPMENT.md. ```bash ./script/build_and_run.sh ``` ```bash ./script/build_and_run.sh --verify ``` ```bash swift test ``` -------------------------------- ### View logs Source: https://github.com/himomohi/airtranslate/blob/master/docs/DEVELOPMENT.md Use this command to view logs for the local build. ```bash ./script/build_and_run.sh --logs ``` -------------------------------- ### Credential, network, and write-path review Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.1-security-gate-2026-09-16.md Review changed API key and key store files, search for credential, network, and file write operations across selected source files. ```bash git diff --name-only -- Sources/AirTranslate/Services/*APIKey* Sources/AirTranslate/Services/*KeyStore* Release/PRIVACY-NOTICE.md Resources script | sort rg -n "SecItem|Keychain|APIKeyStore|Authorization|Bearer|URLSession|webSocket|Transcript|Application Support|save.*Transcript|write\(|FileManager|NSOpenPanel|URL\(" Sources/AirTranslate/Models/FloatingCaptionAppearance.swift Sources/AirTranslate/Services/TranslationSessionStore.swift Sources/AirTranslate/Support/FloatingCaptionWindowController.swift Sources/AirTranslate/Support/FloatingWindowConfigurator.swift Sources/AirTranslate/Views/FloatingCaptionWindowView.swift Sources/AirTranslate/Views/FloatingCaptionResizeHandle.swift Sources/AirTranslate/Views/SettingsView.swift ``` -------------------------------- ### Release checks commands Source: https://github.com/himomohi/airtranslate/blob/master/docs/DEVELOPMENT.md Run the project checks for public release preparation. ```bash swift test swift build -c release ./script/build_and_run.sh --verify ``` -------------------------------- ### SwiftPM checks Source: https://github.com/himomohi/airtranslate/blob/master/docs/DEVELOPMENT.md Run SwiftPM build and test commands. ```bash swift build swift test ``` -------------------------------- ### Release build output paths Source: https://github.com/himomohi/airtranslate/blob/master/Release/README.md Lists the generated output files from the release build. The Release/product/ directory is generated output and should stay out of commits. ```text Release/product/AirTranslate.app Release/product/AirTranslate--.zip Release/product/AirTranslate-.zip Release/product/AirTranslate.dmg Release/product/AirTranslate.dmg.sha256 Release/product/AirTranslate-.dmg Release/product/AirTranslate-.dmg.sha256 ``` -------------------------------- ### Regenerate screenshots with make_app_store_screenshots.py Source: https://github.com/himomohi/airtranslate/blob/master/Release/assets/README.md Run this command to regenerate the release screenshots after changing copy, layout, or source backgrounds. The generated screenshots render all Korean and English copy locally rather than relying on image generation to draw text. ```bash python3 Release/scripts/make_app_store_screenshots.py ``` -------------------------------- ### Build both ZIP and DMG artifacts Source: https://github.com/himomohi/airtranslate/blob/master/Release/README.md Builds both ZIP and DMG artifacts in one run. ```bash ./Release/build_open_source_release.sh all ``` -------------------------------- ### Verify release artifacts and code signing Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.0-security-gate-2026-09-16.md Run artifact checks: verify DMG checksums, verify disk images, extract ZIPs, attach DMGs, scan for secrets, verify code signing, compute SHA-256 hashes, and confirm LICENSE and NOTICE files are present in the app bundle. ```bash hdiutil info | rg -n 'AirTranslate|airtranslate-security|airtranslate-1.9.0' find Release/product -maxdepth 1 -type f -print | sort (cd Release/product && shasum -a 256 -c AirTranslate.dmg.sha256 && shasum -a 256 -c AirTranslate-1.9.0.dmg.sha256) hdiutil verify Release/product/AirTranslate.dmg hdiutil verify Release/product/AirTranslate-1.9.0.dmg unzip -q Release/product/AirTranslate-1.9.0-190.zip -d "$scan_root/AirTranslate-1.9.0-190" unzip -q Release/product/AirTranslate-1.9.0.zip -d "$scan_root/AirTranslate-1.9.0" hdiutil attach Release/product/AirTranslate.dmg -readonly -nobrowse -mountpoint "$mount_point" hdiutil attach Release/product/AirTranslate-1.9.0.dmg -readonly -nobrowse -mountpoint "$mount_point" scan_secret_tree "$extracted_or_mounted_tree" "$scope" # embedded Python redacted scanner inside /tmp/airtranslate-security-recovery-final-scan.zsh codesign --verify --deep --strict --verbose=2 "$extracted_or_mounted_tree/AirTranslate.app" codesign -dv --verbose=4 "$extracted_or_mounted_tree/AirTranslate.app" hdiutil detach "$mount_point" -quiet shasum -a 256 Release/product/AirTranslate-1.9.0-190.zip Release/product/AirTranslate-1.9.0.zip Release/product/AirTranslate.dmg Release/product/AirTranslate-1.9.0.dmg zipinfo -1 Release/product/AirTranslate-1.9.0.zip | rg '(^|/)(LICENSE|NOTICE)(\..*)?$' hdiutil attach Release/product/AirTranslate.dmg -readonly -nobrowse -mountpoint "$mount_point" && test -f "$mount_point/AirTranslate.app/Contents/Resources/LICENSE" && test -f "$mount_point/AirTranslate.app/Contents/Resources/NOTICE" && hdiutil detach "$mount_point" -quiet hdiutil attach Release/product/AirTranslate-1.9.0.dmg -readonly -nobrowse -mountpoint "$mount_point" && test -f "$mount_point/AirTranslate.app/Contents/Resources/LICENSE" && test -f "$mount_point/AirTranslate.app/Contents/Resources/NOTICE" && hdiutil detach "$mount_point" -quiet ``` -------------------------------- ### Verify DMG checksum with shasum and cat Source: https://github.com/himomohi/airtranslate/blob/master/docs/GETTING-STARTED.md Compare the SHA-256 checksum of the downloaded DMG against the published checksum file. Run these commands in the directory containing both files. ```bash shasum -a 256 AirTranslate.dmg cat AirTranslate.dmg.sha256 ``` -------------------------------- ### Version metadata file path Source: https://github.com/himomohi/airtranslate/blob/master/docs/DEVELOPMENT.md The app version and build number are stored in this file. ```text script/app_metadata.sh ``` -------------------------------- ### Public wording checks Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.1-security-gate-2026-09-16.md Search README and release docs for notarization, ad-hoc, Developer ID, API key, and keychain phrasing, and also scan for hardcoded secrets in those files. ```bash rg -n "not Apple-notarized|notarized|ad-hoc|Developer ID|Open Anyway|first-launch|provider authorization|hardcoded provider keys|configured key" README.md README.ko.md README.ja.md README.zh-CN.md Release/GITHUB-RELEASE-1.9.1.md docs/GETTING-STARTED.md docs/release/1.9.1-publication-2026-09-16.md docs/release/1.9.1-readme-content-gate.md docs/release/README-CONTENT-CHECKS-1.9.1.env CHANGELOG.md Release/VERSION-HISTORY.md rg -n "not Apple-notarized|notarized|ad-hoc|Developer ID|Open Anyway|first-launch|provider authorization|hardcoded provider keys|configured key|API key|Keychain" README.md README.ko.md README.ja.md README.zh-CN.md Release/GITHUB-RELEASE-1.9.1.md docs/GETTING-STARTED.md docs/release/1.9.1-publication-2026-09-16.md docs/release/1.9.1-readme-content-gate.md docs/release/README-CONTENT-CHECKS-1.9.1.env CHANGELOG.md Release/VERSION-HISTORY.md structure/README.md rg -n "sk-[A-Za-z0-9_-]{20,}|OPENAI_API_KEY\s*=\s*[A-Za-z0-9_-]+|ghp_[A-Za-z0-9_]{20,}|github_pat_[A-Za-z0-9_]{20,}|AKIA[0-9A-Z]{16}|-----BEGIN (RSA |OPENSSH |EC |DSA |)PRIVATE KEY-----|\.env|\.p12|mobileprovision|provisionprofile|\.key" README.md README.ko.md README.ja.md README.zh-CN.md Release/GITHUB-RELEASE-1.9.1.md docs/GETTING-STARTED.md docs/design/issue-18-caption-customization-2026-09-16.md docs/release/1.9.1-publication-2026-09-16.md docs/release/1.9.1-readme-content-gate.md CHANGELOG.md Release/VERSION-HISTORY.md ``` -------------------------------- ### Exact Security Checks for AirTranslate 1.9.1 Artifacts Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.1-security-gate-2026-09-16.md Run these commands to verify the integrity, security, and code signing of the AirTranslate 1.9.1 release artifacts. The commands check the asset manifest, verify checksums, inspect ZIP and DMG contents, search for secrets and sensitive files, validate code signing and entitlements, and extract bundle metadata. Replace placeholders like , , and with actual paths. ```bash plutil -p /tmp/airtranslate-1.9.1-asset-manifest-2026-09-16-final.json sed -n '1,220p' /tmp/airtranslate-1.9.1-artifact-verification-2026-09-16-final.log find Release/product -maxdepth 1 -type f -print | sort shasum -a 256 Release/product/AirTranslate-1.9.1-191.zip Release/product/AirTranslate-1.9.1.zip Release/product/AirTranslate.dmg Release/product/AirTranslate-1.9.1.dmg Release/product/AirTranslate.dmg.sha256 Release/product/AirTranslate-1.9.1.dmg.sha256 (cd Release/product && shasum -a 256 -c AirTranslate.dmg.sha256) (cd Release/product && shasum -a 256 -c AirTranslate-1.9.1.dmg.sha256) ditto -x -k Release/product/AirTranslate-1.9.1-191.zip /zip-build ditto -x -k Release/product/AirTranslate-1.9.1.zip /zip-version hdiutil verify Release/product/AirTranslate.dmg hdiutil verify Release/product/AirTranslate-1.9.1.dmg hdiutil attach Release/product/AirTranslate.dmg -readonly -nobrowse -mountpoint /mnt-latest hdiutil attach Release/product/AirTranslate-1.9.1.dmg -readonly -nobrowse -mountpoint /mnt-versioned find \( -name '.env' -o -name '*.p12' -o -name '*.mobileprovision' -o -name '*.provisionprofile' -o -name '*.key' -o -name '*.pem' -o -name '*.cer' -o -name '*.cert' -o -name '*.crt' -o -name '*.p8' -o -name '*.pfx' \) -print rg -a -l --pcre2 '(sk-[A-Za-z0-9_-]{20,}|OPENAI_API_KEY\s*=\s*[A-Za-z0-9_-]+|ghp_[A-Za-z0-9_]{20,}|github_pat_[A-Za-z0-9_]{20,}|AKIA[0-9A-Z]{16}|-----BEGIN (RSA |OPENSSH |EC |DSA |)PRIVATE KEY-----)' codesign --verify --deep --strict --verbose=2 codesign -dvv codesign -d --entitlements :- plutil -extract CFBundleIdentifier raw -o - /Contents/Info.plist plutil -extract CFBundleShortVersionString raw -o - /Contents/Info.plist plutil -extract CFBundleVersion raw -o - /Contents/Info.plist plutil -extract LSMinimumSystemVersion raw -o - /Contents/Info.plist hdiutil detach /mnt-latest hdiutil detach /mnt-versioned hdiutil info | rg -n 'AirTranslate|airtranslate-1.9.1|airtranslate-security' ``` -------------------------------- ### Override release defaults with environment variables Source: https://github.com/himomohi/airtranslate/blob/master/Release/README.md Sets the bundle identifier, version, and build number for the release build. Use this to customize the build when the defaults are not appropriate. ```bash BUNDLE_ID="com.example.AirTranslate" VERSION="1.8.0" BUILD_NUMBER="180" ``` -------------------------------- ### Source and wording checks (git, sed, nl, rg commands) Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.10.0-security-gate-2026-09-18.md Commands for checking git status, diffs, listing files, and scanning for secrets in source and documentation files. ```bash git status --short git diff --name-status git ls-files --others --exclude-standard sed -n '1,120p' script/app_metadata.sh nl -ba Release/GITHUB-RELEASE-1.10.0.md | sed -n '1,140p' rg -n "1\.10\.0|build1100|Grok STT|Grok Voice|xAI|SpaceXAI|source build|not yet|아직|まだ|尚未|ad-hoc|notar" README.md README.ko.md README.ja.md README.zh-CN.md CHANGELOG.md Release/VERSION-HISTORY.md Release/GITHUB-RELEASE-1.10.0.md Release/PRIVACY-NOTICE.md docs/grok-stt.md docs/GETTING-STARTED.md structure/README.md git diff --check rg -n "xai-|XAI_API_KEY|Bearer|OPENAI_API_KEY|secret|sensitive|\.env|p12|mobileprovision|provisionprofile|PRIVATE KEY" .github/workflows/release-verify.yml nl -ba docs/release/1.10.0-readme-content-gate.md | sed -n '1,180p' git diff -- .github/workflows/release-verify.yml | sed -n '1,220p' ls -l docs/release/1.10.0-verification-report.md docs/release/1.10.0-readme-content-gate.md 하네스성숙도기록.md /tmp/airtranslate-1.10.0-staging-manifest.json /tmp/airtranslate-1.10.0-artifact-security.json rg -n --hidden --glob '!.git/**' --glob '!.build/**' --glob '!dist/**' --glob '!Release/product/**' '(sk-[A-Za-z0-9_-]{20,}|OPENAI_API_KEY\s*[=:]\s*[A-Za-z0-9_-]{20,}|xai-[A-Za-z0-9_-]{20,}|XAI_API_KEY\s*[=:]\s*[A-Za-z0-9_-]{20,}|ghp_[A-Za-z0-9_]{20,}|github_pat_[A-Za-z0-9_]{20,}|AKIA[0-9A-Z]{16}|-----BEGIN (RSA |OPENSSH |EC |DSA |)?PRIVATE KEY-----|Bearer\s+[A-Za-z0-9._~+/=-]{20,})' docs/release/1.10.0-verification-report.md docs/release/1.10.0-readme-content-gate.md 하네스성숙도기록.md docs/release/1.10.0-security-gate-2026-09-18.md README.md README.ko.md README.ja.md README.zh-CN.md CHANGELOG.md Release/VERSION-HISTORY.md Release/GITHUB-RELEASE-1.10.0.md Release/PRIVACY-NOTICE.md docs/grok-stt.md docs/GETTING-STARTED.md structure/README.md .github/workflows/release-verify.yml find docs/release/1.10.0-verification-report.md docs/release/1.10.0-readme-content-gate.md 하네스성숙도기록.md docs/release/1.10.0-security-gate-2026-09-18.md -name '.env' -o -name '*.p12' -o -name '*.mobileprovision' -o -name '*.provisionprofile' -o -name '*.key' -o -name '*.pem' -o -name '*.cer' -o -name '*.crt' -o -name '*.der' ``` -------------------------------- ### Run audit_update_set.sh with release environment variables Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.0-readme-content-gate.md Use this command to run the public update-set audit after the release verifier creates local artifacts. It sources the environment file, sets release-specific variables, and invokes the audit script with version 1.9.0 and build 190. The audit input contains 48 localized needles; this is a semantic release gate, not proof that tests, artifacts, publication, or remote downloads passed. ```bash set -a . docs/release/README-CONTENT-CHECKS-1.9.0.env set +a PUBLIC_RELEASE=1 \ RELEASE_NOTES_FILE="Release/GITHUB-RELEASE-1.9.0.md" \ VERSION_FILES="script/app_metadata.sh,CHANGELOG.md,Release/VERSION-HISTORY.md,README.md,README.ko.md,README.ja.md,README.zh-CN.md" \ README_FILES="README.md,README.ko.md,README.ja.md,README.zh-CN.md" \ REQUIRE_README_CONTENT_CHECKS=1 \ REPOSITORY_URL="https://github.com/himomohi/AirTranslate" \ RELEASE_URL="https://github.com/himomohi/AirTranslate/releases/tag/v1.9.0" \ PRIMARY_DOWNLOAD_URL="https://github.com/himomohi/AirTranslate/releases/latest/download/AirTranslate.dmg" \ REQUIRE_RELEASE_LINKS=1 \ ARTIFACTS="Release/product/AirTranslate-1.9.0-190.zip,Release/product/AirTranslate-1.9.0.zip,Release/product/AirTranslate.dmg,Release/product/AirTranslate.dmg.sha256,Release/product/AirTranslate-1.9.0.dmg,Release/product/AirTranslate-1.9.0.dmg.sha256" \ bash ~/.codex/skills/github-update-set/scripts/audit_update_set.sh . 1.9.0 190 ``` -------------------------------- ### Run public update-set audit for AirTranslate 1.9.1 Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.1-readme-content-gate.md Sources the environment file and runs the audit script with release-specific variables. Requires the release verifier to have created local artifacts first. The command sets PUBLIC_RELEASE, release notes, version files, README files, URLs, and artifact paths before invoking audit_update_set.sh. ```bash set -a . docs/release/README-CONTENT-CHECKS-1.9.1.env set +a PUBLIC_RELEASE=1 \ RELEASE_NOTES_FILE="Release/GITHUB-RELEASE-1.9.1.md" \ VERSION_FILES="script/app_metadata.sh,CHANGELOG.md,Release/VERSION-HISTORY.md,README.md,README.ko.md,README.ja.md,README.zh-CN.md" \ README_FILES="README.md,README.ko.md,README.ja.md,README.zh-CN.md" \ REQUIRE_README_CONTENT_CHECKS=1 \ REPOSITORY_URL="https://github.com/himomohi/AirTranslate" \ RELEASE_URL="https://github.com/himomohi/AirTranslate/releases/tag/v1.9.1" \ PRIMARY_DOWNLOAD_URL="https://github.com/himomohi/AirTranslate/releases/latest/download/AirTranslate.dmg" \ REQUIRE_RELEASE_LINKS=1 \ ARTIFACTS="Release/product/AirTranslate-1.9.1-191.zip,Release/product/AirTranslate-1.9.1.zip,Release/product/AirTranslate.dmg,Release/product/AirTranslate.dmg.sha256,Release/product/AirTranslate-1.9.1.dmg,Release/product/AirTranslate-1.9.1.dmg.sha256" \ bash ~/.codex/skills/github-update-set/scripts/audit_update_set.sh . 1.9.1 191 ``` -------------------------------- ### Review source files with nl and sed Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.0-security-gate-2026-09-16.md Use nl with sed to review specific line ranges in the source files that are part of the security gate. The commands print line numbers and the selected lines for manual inspection. ```bash nl -ba Sources/AirTranslate/Models/NariTranscriptionModel.swift | sed -n '1,80p' nl -ba Sources/AirTranslate/Support/NariCopy.swift | sed -n '1,90p' nl -ba Sources/AirTranslate/Services/TranslationSessionStore.swift | sed -n '500,550p' nl -ba Sources/AirTranslate/Services/TranslationSessionStore.swift | sed -n '1380,1465p' nl -ba Sources/AirTranslate/Services/NariRealtimeTranscriber.swift | sed -n '340,360p' nl -ba Tests/AirTranslateCoreTests/NariSessionTests.swift | sed -n '70,115p' ``` -------------------------------- ### Check repository state with git status and diff Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.0-security-gate-2026-09-16.md Run these git commands to check the repository state before the security gate. The diff --check command targets the specific files listed for the 1.9.0 release. ```bash git status --short git diff --stat git diff --name-only git diff --check -- Sources/AirTranslate/Models/NariTranscriptionModel.swift Sources/AirTranslate/Support/NariCopy.swift Sources/AirTranslate/Services/TranslationSessionStore.swift Sources/AirTranslate/Services/NariRealtimeTranscriber.swift Tests/AirTranslateCoreTests/NariSessionTests.swift Tests/AirTranslateCoreTests/NariModelSettingsTests.swift docs/nari-stt.md Release/GITHUB-RELEASE-1.9.0.md README.md README.ko.md README.ja.md README.zh-CN.md docs/release/1.9.0-security-gate-2026-09-16.md ``` -------------------------------- ### Build ZIP release artifact Source: https://github.com/himomohi/airtranslate/blob/master/Release/README.md Runs the release build script to create an ad-hoc signed app bundle and ZIP for local inspection or attaching to a GitHub release. ```bash ./Release/build_open_source_release.sh ``` -------------------------------- ### Verify AirTranslate.dmg checksum with shasum Source: https://github.com/himomohi/airtranslate/blob/master/README.md Verify the SHA-256 checksum of the downloaded AirTranslate.dmg against the published hash file. Run both commands in the same directory as the downloaded files. ```bash shasum -a 256 AirTranslate.dmg cat AirTranslate.dmg.sha256 ``` -------------------------------- ### Reset development permissions Source: https://github.com/himomohi/airtranslate/blob/master/docs/DEVELOPMENT.md Use this command to reset development permissions for the local build. ```bash ./script/build_and_run.sh --reset-permissions ``` -------------------------------- ### Secret scan commands for release candidate Source: https://github.com/himomohi/airtranslate/blob/master/Release/README.md Run these two commands locally before committing or uploading a release candidate to scan the source tree and current diff for secrets like bearer tokens, private keys, client secrets, access tokens, refresh tokens, and API keys. The first command scans the entire source tree excluding .git, .build, and Release/product directories. The second command scans the current git diff excluding .build and Release/product paths. ```bash rg -n --hidden --glob '!.git/**' --glob '!.build/**' --glob '!Release/product/**' \ -i 'bearer|private key|client secret|access token|refresh token|api key' . git diff -- . ':(exclude).build/**' ':(exclude)Release/product/**' | \ rg -n -i 'bearer|private key|client secret|access token|refresh token|api key' ``` -------------------------------- ### Repository state checks Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.1-security-gate-2026-09-16.md Commands to capture the repository status, latest commit, diff statistics, changed file names, and whitespace errors before the security gate. ```bash git status --short --branch git log -1 --oneline git diff --stat git diff --name-status git diff --check ``` -------------------------------- ### Source secret and sensitive-file checks Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.1-security-gate-2026-09-16.md Search for hardcoded secrets, API keys, and private keys across the repository, excluding .git, .build, dist, and Release/product, and list sensitive files like .env and .p12. ```bash rg -l --hidden --glob '!.git/**' --glob '!.build/**' --glob '!dist/**' --glob '!Release/product/**' '(sk-[A-Za-z0-9_-]{20,}|OPENAI_API_KEY\s*=\s*[A-Za-z0-9_-]+|ghp_[A-Za-z0-9_]{20,}|github_pat_[A-Za-z0-9_]{20,}|AKIA[0-9A-Z]{16}|-----BEGIN (RSA |OPENSSH |EC |DSA |)PRIVATE KEY-----)' . find . -path './.git' -prune -o -path './.build' -prune -o -path './dist' -prune -o -path './Release/product' -prune -o \( -name '.env' -o -name '*.p12' -o -name '*.mobileprovision' -o -name '*.provisionprofile' -o -name '*.key' \) -print ``` -------------------------------- ### Artifact security manifest path Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.10.0-security-gate-2026-09-18.md Path to the artifact security manifest. ```text /tmp/airtranslate-1.10.0-artifact-security.json ``` -------------------------------- ### Source review file checks with rg and nl Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.1-security-gate-2026-09-16.md Review commands for floating caption and translation session source files, using rg to search key symbols and nl to display specific line ranges. ```bash rg -n "floatingCaption(Custom|TextColor|Background|Appearance|Measured|Primary|Secondary|resetFloating|color|opacity)|resetFloatingCaption|CaptionWindowController|frameIsReasonablyVisible|clampedFrame|FloatingCaptionAppearance" Sources/AirTranslate Tests/AirTranslateCoreTests nl -ba Sources/AirTranslate/Models/FloatingCaptionAppearance.swift nl -ba Sources/AirTranslate/Support/FloatingCaptionDragSurface.swift nl -ba Sources/AirTranslate/Views/FloatingCaptionResizeHandle.swift nl -ba Sources/AirTranslate/Support/FloatingCaptionWindowController.swift nl -ba Sources/AirTranslate/Support/FloatingWindowConfigurator.swift nl -ba Sources/AirTranslate/Views/FloatingCaptionWindowView.swift nl -ba Sources/AirTranslate/Services/TranslationSessionStore.swift | sed -n '520,760p' nl -ba Sources/AirTranslate/Services/TranslationSessionStore.swift | sed -n '2200,2270p' nl -ba Sources/AirTranslate/Services/TranslationSessionStore.swift | sed -n '3250,3455p' nl -ba Sources/AirTranslate/Views/SettingsView.swift | sed -n '440,700p' nl -ba Sources/AirTranslate/Views/SettingsView.swift | sed -n '880,945p' nl -ba Sources/AirTranslate/Models/AppText.swift | sed -n '700,800p' nl -ba Sources/AirTranslate/Views/SettingsView.swift | sed -n '2240,2310p' nl -ba Tests/AirTranslateCoreTests/FloatingCaptionWindowFrameVisibilityTests.swift nl -ba Tests/AirTranslateCoreTests/FloatingCaptionStabilityTests.swift | sed -n '1,190p' nl -ba Tests/AirTranslateCoreTests/LongSessionCaptionPresentationTests.swift | sed -n '200,235p' ``` -------------------------------- ### Run public update-set audit for AirTranslate 1.8.0 Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.8.0-readme-content-gate.md Use this bash command to execute the public update-set audit for the 1.8.0 release. It sources the README-CONTENT-CHECKS-1.8.0.env file and sets environment variables for release notes, version files, README files, repository URLs, and artifacts before invoking the audit script. ```bash set -a . docs/release/README-CONTENT-CHECKS-1.8.0.env set +a PUBLIC_RELEASE=1 \ RELEASE_NOTES_FILE="Release/GITHUB-RELEASE-1.8.0.md" \ VERSION_FILES="script/app_metadata.sh,CHANGELOG.md,Release/VERSION-HISTORY.md,README.md,README.ko.md,README.ja.md,README.zh-CN.md" \ README_FILES="README.md,README.ko.md,README.ja.md,README.zh-CN.md" \ REQUIRE_README_CONTENT_CHECKS=1 \ REPOSITORY_URL="https://github.com/himomohi/AirTranslate" \ RELEASE_URL="https://github.com/himomohi/AirTranslate/releases/tag/v1.8.0" \ PRIMARY_DOWNLOAD_URL="https://github.com/himomohi/AirTranslate/releases/latest/download/AirTranslate.dmg" \ REQUIRE_RELEASE_LINKS=1 \ ARTIFACTS="Release/product/AirTranslate-1.8.0-180.zip,Release/product/AirTranslate-1.8.0.zip,Release/product/AirTranslate.dmg,Release/product/AirTranslate.dmg.sha256,Release/product/AirTranslate-1.8.0.dmg,Release/product/AirTranslate-1.8.0.dmg.sha256" \ bash ~/.codex/skills/github-update-set/scripts/audit_update_set.sh . 1.8.0 180 ``` -------------------------------- ### Mount cleanup check Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.10.0-security-gate-2026-09-18.md Checks for any remaining mounts related to AirTranslate or the security scan. The command returned no mounts, confirming that all mounts were detached. ```bash mount | rg 'AirTranslate|airtranslate-1\.10\.0-security|Release/product' || true ``` -------------------------------- ### Reusable artifact scanner path Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.10.0-security-gate-2026-09-18.md Path to the reusable artifact scanner script. ```text /tmp/airtranslate-1.10.0-artifact-security-scan.py ``` -------------------------------- ### Scan source for secrets and sensitive files Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.0-security-gate-2026-09-16.md Scan the source tree for secrets and sensitive files. The rg command searches for API keys and private key patterns, while the find commands locate .env, certificate, and key files, excluding .git, .build, dist, and Release/product directories. ```bash rg -n --hidden --glob '!.git/**' --glob '!.build/**' --glob '!dist/**' --glob '!Release/product/**' '(sk-[A-Za-z0-9_-]{20,}|OPENAI_API_KEY\s*=\s*[A-Za-z0-9_-]+|ghp_[A-Za-z0-9_]{20,}|github_pat_[A-Za-z0-9_]{20,}|AKIA[0-9A-Z]{16}|-----BEGIN (RSA |OPENSSH |EC |DSA |)PRIVATE KEY-----)' . >/tmp/airtranslate-security-source-rg-final.paths find . -path './.git' -prune -o -path './.build' -prune -o -path './dist' -prune -o -path './Release/product' -prune -o \( -name '.env' -o -name '*.p12' -o -name '*.mobileprovision' -o -name '*.provisionprofile' -o -name '*.key' \) -print find . -path './.git' -prune -o -path './.build' -prune -o -path './dist' -prune -o -path './Release/product' -prune -o \( -name '.env' -o -name '*.p12' -o -name '*.mobileprovision' -o -name '*.provisionprofile' -o -name '*.key' -o -name '*.pem' -o -name '*.cer' -o -name '*.cert' -o -name '*.crt' -o -name '*.p8' -o -name '*.pfx' \) -print ``` -------------------------------- ### Rerun artifact security scanner Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.10.0-security-gate-2026-09-18.md Reruns the artifact security scanner for AirTranslate 1.10.0 build 1100. Creates a temporary directory, runs the scanner with the specified options, and checks for any remaining mounts. The rerun produced a PASS summary with six assets, four inspected app bundles, version/build match, codesign/runtime/entitlement checks passed, secret hits 0, sensitive-file hits 0, keyword hits 4, and all mounts detached. ```bash rerun_tmp=$(mktemp -d /tmp/airtranslate-1.10.0-security-rerun.XXXXXX) /tmp/airtranslate-1.10.0-artifact-security-scan.py --repo . --tmp-root "$rerun_tmp" --out /tmp/airtranslate-1.10.0-artifact-security-rerun.json --version 1.10.0 --build 1100 mount | rg 'AirTranslate|airtranslate-1\.10\.0-security-rerun|Release/product' || true ``` -------------------------------- ### Source secret and sensitive-file checks Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.10.0-security-gate-2026-09-18.md Commands to scan the entire repository for secrets and sensitive files, excluding certain directories. ```bash rg -n --hidden --glob '!.git/**' --glob '!.build/**' --glob '!dist/**' --glob '!Release/product/**' '(sk-[A-Za-z0-9_-]{20,}|OPENAI_API_KEY\s*[=:]\s*[A-Za-z0-9_-]{20,}|xai-[A-Za-z0-9_-]{20,}|XAI_API_KEY\s*[=:]\s*[A-Za-z0-9_-]{20,}|ghp_[A-Za-z0-9_]{20,}|github_pat_[A-Za-z0-9_]{20,}|AKIA[0-9A-Z]{16}|-----BEGIN (RSA |OPENSSH |EC |DSA |)?PRIVATE KEY-----|Bearer\s+[A-Za-z0-9._~+/=-]{20,})' . find . -path './.git' -prune -o -path './.build' -prune -o -path './dist' -prune -o -path './Release/product' -prune -o \( -name '.env' -o -name '*.p12' -o -name '*.mobileprovision' -o -name '*.provisionprofile' -o -name '*.key' -o -name '*.pem' -o -name '*.cer' -o -name '*.crt' -o -name '*.der' \) -print ``` -------------------------------- ### Language detection and setting with localStorage persistence Source: https://github.com/himomohi/airtranslate/blob/master/docs/index.html JavaScript code for language detection and setting on the AirTranslate website. It checks supported languages, falls back to browser or timezone language, updates the document title, meta description, and elements with data-i18n attributes, and persists the selection in localStorage. ```javascript supportedLanguages.includes(lang) && lang !== "en"); if (browserMatch) return browserMatch; return languageFromTimeZone() || "en"; } function setLanguage(lang, persist = true) { const selected = supportedLanguages.includes(lang) ? lang : "en"; document.documentElement.lang = selected === "zh" ? "zh-CN" : selected; document.title = copy[selected]["meta.title"]; const description = document.querySelector("meta[name='description']"); if (description) description.setAttribute("content", copy[selected]["meta.description"]); document.querySelectorAll("[data-i18n]").forEach((node) => { const key = node.getAttribute("data-i18n"); if (copy[selected][key]) node.textContent = copy[selected][key]; }); document.querySelectorAll("[data-lang-button]").forEach((button) => { const active = button.getAttribute("data-lang-button") === selected; button.setAttribute("aria-pressed", String(active)); }); if (persist) window.localStorage.setItem("airtranslate-language", selected); } document.querySelectorAll("[data-lang-button]").forEach((button) => { button.addEventListener("click", () => setLanguage(button.getAttribute("data-lang-button"))); }); setLanguage(getInitialLanguage(), false); ``` -------------------------------- ### Transcript file path pattern Source: https://github.com/himomohi/airtranslate/blob/master/docs/GETTING-STARTED.md When 'Save Transcript Files' is enabled, dated .txt files are saved under this path. ```text ~/Library/Application Support/AirTranslate/Transcripts/*.txt ``` -------------------------------- ### Keyword hit list for AirTranslate artifacts Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.10.0-security-gate-2026-09-18.md Text output listing the four keyword hits found in the artifacts. Each line identifies the artifact and the binary path with the label 'authorization_keyword'. No secret values were printed or stored. ```text AirTranslate-1.10.0-1100.zip: AirTranslate.app/Contents/MacOS/AirTranslate labels=authorization_keyword AirTranslate-1.10.0.zip: AirTranslate.app/Contents/MacOS/AirTranslate labels=authorization_keyword AirTranslate.dmg: AirTranslate.app/Contents/MacOS/AirTranslate labels=authorization_keyword AirTranslate-1.10.0.dmg: AirTranslate.app/Contents/MacOS/AirTranslate labels=authorization_keyword ``` -------------------------------- ### Scanner summary JSON from /tmp/airtranslate-1.10.0-artifact-security.json Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.10.0-security-gate-2026-09-18.md JSON output from the artifact security scanner. Reports counts for assets, zips, DMGs, apps, and boolean flags for all checks. All checks pass, with 4 keyword hits and no secrets or sensitive files. ```json { "asset_count": 6, "zip_count": 2, "dmg_count": 2, "app_count": 4, "all_versions_match": true, "all_have_license_notice": true, "all_codesign_verify_pass": true, "all_ad_hoc": true, "all_hardened_runtime": true, "all_audio_input_true": true, "all_get_task_allow_absent": true, "all_hdiutil_verify_pass": true, "all_sha256_files_match": true, "secret_hit_count": 0, "sensitive_file_count": 0, "keyword_hit_count": 4, "all_mounts_detached": true } ``` -------------------------------- ### Final Artifact Security Script Output Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.1-security-gate-2026-09-16.md The final artifact security script implementing the commands above completed with this output, indicating that all checks passed. The log file is /tmp/airtranslate-1.9.1-security-artifact-check-2026-09-16-final.log. ```text PASS: local ZIP/DMG/checksum/codesign/entitlement/secret/sensitive-file artifact gate passed log: /tmp/airtranslate-1.9.1-security-artifact-check-2026-09-16-final.log ``` -------------------------------- ### Redacted artifact scanner patterns Source: https://github.com/himomohi/airtranslate/blob/master/docs/release/1.9.0-security-gate-2026-09-16.md These are the redacted patterns used by the artifact scanner to detect secrets in the release artifacts. They match OpenAI API keys, GitHub tokens, AWS access keys, and private key headers. ```text sk-[A-Za-z0-9_-]{20,} OPENAI_API_KEY\s*=\s*[A-Za-z0-9_-]+ ghp_[A-Za-z0-9_]{20,} github_pat_[A-Za-z0-9_]{20,} AKIA[0-9A-Z]{16} -----BEGIN (RSA |OPENSSH |EC |DSA |)?PRIVATE KEY----- ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.