LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
ci: verify macOS signatures before release
nash_su0c70490bd850
diff --git a/.github/scripts/verify-macos-release.sh b/.github/scripts/verify-macos-release.shnew file mode 100755index 00000000..cdf3d488--- /dev/null+++ b/.github/scripts/verify-macos-release.sh@@ -0,0 +1,44 @@+#!/usr/bin/env bash+set -euo pipefail++target_root="${1:-src-tauri/target}"++app_path="$(find "$target_root" -path '*/release/bundle/macos/*.app' -type d -print -quit)"+dmg_path="$(find "$target_root" -path '*/release/bundle/dmg/*.dmg' -type f -print -quit)"++if [[ -z "$app_path" || -z "$dmg_path" ]]; then+ echo "Expected both a macOS .app bundle and .dmg under $target_root" >&2+ exit 1+fi++verify_app() {+ local app="$1"+ echo "Verifying strict code signature: $app"+ codesign --verify --deep --strict --verbose=2 "$app"+ codesign --display --verbose=4 "$app"+ spctl --assess --type execute --verbose=4 "$app"+ xcrun stapler validate "$app"+}++verify_app "$app_path"+xcrun stapler validate "$dmg_path"++mount_point="$(mktemp -d "${TMPDIR:-/tmp}/llm-wiki-dmg.XXXXXX")"+mounted=0+cleanup() {+ if [[ "$mounted" -eq 1 ]]; then+ hdiutil detach "$mount_point" -quiet || hdiutil detach "$mount_point" -force -quiet || true+ fi+ rmdir "$mount_point" 2>/dev/null || true+}+trap cleanup EXIT++hdiutil attach "$dmg_path" -nobrowse -readonly -mountpoint "$mount_point" -quiet+mounted=1+mounted_app="$(find "$mount_point" -maxdepth 2 -name '*.app' -type d -print -quit)"+if [[ -z "$mounted_app" ]]; then+ echo "Mounted DMG does not contain an app bundle" >&2+ exit 1+fi++verify_app "$mounted_app"diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 32156777..93f03577 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -127,10 +127,16 @@ jobs:tagName: ${{ github.event_name == 'push' && github.ref_name || '' }}releaseName: ${{ github.event_name == 'push' && format('LLM Wiki {0}', github.ref_name) || '' }}releaseBody: 'See the assets below for download links.'- releaseDraft: false+ # Tag builds stay private until every platform succeeds and the+ # macOS app has passed strict signature/notarization verification.+ releaseDraft: ${{ github.event_name == 'push' }}prerelease: falseargs: ${{ matrix.args }}+ - name: Verify signed macOS app and DMG+ if: github.event_name == 'push' && startsWith(matrix.platform, 'macos-')+ run: .github/scripts/verify-macos-release.sh src-tauri/target+- name: Package Windows portable zipif: matrix.platform == 'windows-latest'shell: pwsh@@ -202,3 +208,14 @@ jobs:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}run: |gh release upload "${{ github.ref_name }}" dist-extension/*.zip --clobber++ publish-release:+ name: Publish verified release+ needs: [build, package-extension]+ if: github.event_name == 'push'+ runs-on: ubuntu-latest+ steps:+ - name: Publish draft release+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ run: gh release edit "${{ github.ref_name }}" --repo "${{ github.repository }}" --draft=false