Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
feat(ci): sign the arm64 build and emit updater artifacts
Minh141120d8b9315b350c
diff --git a/.github/workflows/jan-tauri-build-windows-arm64.yml b/.github/workflows/jan-tauri-build-windows-arm64.ymlindex 6992b7927..82f7f76dc 100644--- a/.github/workflows/jan-tauri-build-windows-arm64.yml+++ b/.github/workflows/jan-tauri-build-windows-arm64.yml@@ -4,8 +4,9 @@# that build reads, so it cannot change an x64 artifact. Merging the two behind# an `arch` input is the eventual shape, once ARM64 has gone green.#-# Unsigned, no updater artifacts, so it needs no secrets. Signing, the-# `windows-aarch64` updater entry and publication come later.+# Signing and updater artifacts match the x64 template. Publication does not:+# no S3 sync, no release upload, and no `windows-aarch64` entry in latest.json,+# so an ARM64 build cannot yet reach users through the updater.name: Tauri Build Windows ARM64on:@@ -222,10 +223,14 @@ jobs:- name: Update app version and product nameshell: bashrun: |- jq --arg version "$NEW_VERSION" '.version = $version' ./src-tauri/tauri.conf.json > /tmp/c.json+ jq --arg version "$NEW_VERSION" \+ '.version = $version | .bundle.createUpdaterArtifacts = true' \+ ./src-tauri/tauri.conf.json > /tmp/c.jsonmv /tmp/c.json ./src-tauri/tauri.conf.json- jq '.bundle.targets = ["nsis"] | .bundle.windows.nsis.template = "tauri.bundle.windows.nsis.template"' \+ jq '.bundle.targets = ["nsis"]+ | .bundle.windows.nsis.template = "tauri.bundle.windows.nsis.template"+ | .bundle.windows.signCommand = "powershell -ExecutionPolicy Bypass -File ./sign.ps1 %1"' \./src-tauri/tauri.windows.conf.json > /tmp/w.jsonmv /tmp/w.json ./src-tauri/tauri.windows.conf.json@@ -289,6 +294,9 @@ jobs:Set-Content -Path $t -Value $c -NoNewlineSelect-String -Path $t -Pattern 'ARCH|aarch64|jan_' | Select-Object -First 12+ - name: Install AzureSignTool+ run: dotnet tool install --global --version 6.0.0 AzureSignTool+- name: Config Yarnrun: |corepack enable@@ -298,6 +306,18 @@ jobs:- name: Build appshell: bashrun: make build+ env:+ AZURE_KEY_VAULT_URI: ${{ secrets.AZURE_KEY_VAULT_URI }}+ JAN_ENGINE_REQUIRE_SIGNING: '1'+ AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}+ AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}+ AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}+ AZURE_CERT_NAME: ${{ secrets.AZURE_CERT_NAME }}+ POSTHOG_KEY: ${{ secrets.POSTHOG_KEY }}+ POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}+ JAN_SIGNING_KEY: ${{ secrets.JAN_SIGNING_KEY }}- name: Upload the engine build logif: failure()@@ -345,5 +365,7 @@ jobs:uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4with:name: jan-windows-arm64-exe-${{ env.NEW_VERSION }}- path: ./src-tauri/target/release/bundle/nsis/*.exe+ path: |+ ./src-tauri/target/release/bundle/nsis/*.exe+ ./src-tauri/target/release/bundle/nsis/*.sigif-no-files-found: error