ci: fix build workflows

This commit is contained in:
7w1 committed 2026-07-19 13:03:32 -05:00
1 parent 95c432801a
commit 5b628ef781
3 files changed
+19 -9

No files matched your search

+14 -4
View File
@@ -183,15 +183,21 @@ jobs:
run: node .github/scripts/set-tauri-version.mjs "$VERSION" "$UPDATER_ENDPOINT"
# --- macOS / Windows: standard wry build via tauri-action ---
- name: Configure updater artifacts
- name: Configure desktop bundles
if: ${{ !matrix.cef }}
shell: bash
env:
IS_NIGHTLY: ${{ needs.setup-release.outputs.nightly }}
MATRIX_NAME: ${{ matrix.name }}
run: |
ARGS=""
if [ -z "${TAURI_SIGNING_PRIVATE_KEY:-}" ]; then
echo 'TAURI_BUILD_ARGS=--config {"bundle":{"createUpdaterArtifacts":false}}' >> "$GITHUB_ENV"
else
echo "TAURI_BUILD_ARGS=" >> "$GITHUB_ENV"
ARGS='--config {"bundle":{"createUpdaterArtifacts":false}}'
fi
if [ "$IS_NIGHTLY" = "true" ] && [ "$MATRIX_NAME" = "Windows" ]; then
ARGS="$ARGS --bundles nsis"
fi
echo "TAURI_BUILD_ARGS=${ARGS# }" >> "$GITHUB_ENV"
- name: Build desktop bundles
id: tauri
@@ -219,6 +225,10 @@ jobs:
run: |
echo "$ARTIFACTS" | jq -r '.[]' | while read -r path; do
[ -n "$path" ] || continue
if [ ! -f "$path" ]; then
echo "Skipping non-file artifact: $path"
continue
fi
echo "Uploading $path"
gh release upload "$TAG" "$path" --clobber
done
+1 -1
View File
@@ -19,7 +19,7 @@ if [[ "$VERSION" == *-* ]]; then
RPM_VERSION="$BASE_VERSION"
RPM_ITERATION="0.${PRERELEASE}"
fi
STAGE="src-tauri/target/release"
STAGE="$ROOT/src-tauri/target/release"
OUT="$STAGE/bundle"
WORK="$STAGE/cef-pkg"
+4 -4
View File
@@ -89,12 +89,12 @@ fn resolve_webview_permission(
}
pub fn show_or_create_main_window(app: &AppHandle<crate::BrowserEngine>) -> tauri::Result<()> {
if let Some(window) = app.get_webview_window(MAIN_WINDOW_LABEL) {
if let Some(_window) = app.get_webview_window(MAIN_WINDOW_LABEL) {
#[cfg(desktop)]
{
window.unminimize()?;
window.show()?;
window.set_focus()?;
_window.unminimize()?;
_window.show()?;
_window.set_focus()?;
}
return Ok(());