Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

ci(nightly): run linuxdeploy without FUSE, tolerate a preinstalled AzureSignTool

Akarshan Biswas109d55d23fdf
diff --git a/.github/workflows/template-tauri-build-linux-x64.yml b/.github/workflows/template-tauri-build-linux-x64.yml
index 4ccc9d8bc..285e1f682 100644
--- a/.github/workflows/template-tauri-build-linux-x64.yml
+++ b/.github/workflows/template-tauri-build-linux-x64.yml
@@ -217,7 +217,10 @@ jobs:
--password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" \
"$APP_IMAGE"
+ # linuxdeploy is an AppImage; a runner container without FUSE cannot
+ # mount it, and tauri reports only `failed to run linuxdeploy`.
env:
+ APPIMAGE_EXTRACT_AND_RUN: '1'
RELEASE_CHANNEL: '${{ inputs.channel }}'
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
POSTHOG_KEY: ${{ secrets.POSTHOG_KEY }}
diff --git a/.github/workflows/template-tauri-build-windows-x64.yml b/.github/workflows/template-tauri-build-windows-x64.yml
index f8c329e54..b3b644b68 100644
--- a/.github/workflows/template-tauri-build-windows-x64.yml
+++ b/.github/workflows/template-tauri-build-windows-x64.yml
@@ -117,8 +117,8 @@ jobs:
if (-not (Get-Command dotnet -ErrorAction SilentlyContinue)) {
choco install dotnet-8.0-sdk -y --no-progress
Add-Content $env:GITHUB_PATH 'C:\Program Files\dotnet'
- Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.dotnet\tools"
}
+ Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.dotnet\tools"
- name: Replace Icons for Beta Build
if: inputs.channel != 'stable'
@@ -259,9 +259,13 @@ jobs:
echo "---------nsis.template---------"
cat ./src-tauri/tauri.bundle.windows.nsis.template
+ # A persistent runner may already carry a newer AzureSignTool, and
+ # installing an older version over it is an error.
- name: Install AzureSignTool
run: |
- dotnet tool install --global --version 6.0.0 AzureSignTool
+ if (-not (Get-Command AzureSignTool -ErrorAction SilentlyContinue)) {
+ dotnet tool install --global --version 6.0.0 AzureSignTool
+ }
- name: Config Yarn
run: |