From d90eeffe840169e5955879ece27f537ed5128785 Mon Sep 17 00:00:00 2001 From: DarkSky Date: Sat, 15 Nov 2025 23:52:14 +0800 Subject: [PATCH] fix: ci --- .../common/y-octo/core/src/doc/document.rs | 5 +- .../frontend/apps/electron/forge.config.mjs | 95 ++++++++++--------- 2 files changed, 51 insertions(+), 49 deletions(-) diff --git a/packages/common/y-octo/core/src/doc/document.rs b/packages/common/y-octo/core/src/doc/document.rs index d2ee4455d..52c5deb1d 100644 --- a/packages/common/y-octo/core/src/doc/document.rs +++ b/packages/common/y-octo/core/src/doc/document.rs @@ -1,8 +1,9 @@ -use super::{history::StoreHistory, store::StoreRef, *}; -use crate::sync::{Arc, RwLock}; #[cfg(feature = "events")] use publisher::DocPublisher; +use super::{history::StoreHistory, store::StoreRef, *}; +use crate::sync::{Arc, RwLock}; + #[cfg(feature = "debug")] #[derive(Debug, Clone)] pub struct DocStoreStatus { diff --git a/packages/frontend/apps/electron/forge.config.mjs b/packages/frontend/apps/electron/forge.config.mjs index f1c1e8483..b3daa0f5e 100644 --- a/packages/frontend/apps/electron/forge.config.mjs +++ b/packages/frontend/apps/electron/forge.config.mjs @@ -111,56 +111,57 @@ const makers = [ }, }, }, - !process.env.SKIP_BUNDLE && { - name: '@electron-forge/maker-flatpak', - platforms: ['linux'], - /** @type {import('@electron-forge/maker-flatpak').MakerFlatpakConfig} */ - config: { - options: { - mimeType: linuxMimeTypes, - productName, - bin: productName, - id: fromBuildIdentifier(appIdMap), - icon: iconPngPath, // not working yet - branch: buildType, - files: [ - [ - './resources/affine.metainfo.xml', - '/usr/share/metainfo/affine.metainfo.xml', - ], - ], - runtimeVersion: '25.08', - modules: [ - { - name: 'zypak', - sources: [ - { - type: 'git', - url: 'https://github.com/refi64/zypak', - tag: 'v2025.09', - }, + !process.env.SKIP_BUNDLE && + false && { + name: '@electron-forge/maker-flatpak', + platforms: ['linux'], + /** @type {import('@electron-forge/maker-flatpak').MakerFlatpakConfig} */ + config: { + options: { + mimeType: linuxMimeTypes, + productName, + bin: productName, + id: fromBuildIdentifier(appIdMap), + icon: iconPngPath, // not working yet + branch: buildType, + files: [ + [ + './resources/affine.metainfo.xml', + '/usr/share/metainfo/affine.metainfo.xml', ], - }, - ], - finishArgs: [ - // Wayland/X11 Rendering - '--socket=wayland', - '--socket=x11', - '--share=ipc', - // Open GL - '--device=dri', - // Audio output - '--socket=pulseaudio', - // Read/write home directory access - '--filesystem=home', - // Allow communication with network - '--share=network', - // System notifications with libnotify - '--talk-name=org.freedesktop.Notifications', - ], + ], + runtimeVersion: '25.08', + modules: [ + { + name: 'zypak', + sources: [ + { + type: 'git', + url: 'https://github.com/refi64/zypak', + tag: 'v2025.09', + }, + ], + }, + ], + finishArgs: [ + // Wayland/X11 Rendering + '--socket=wayland', + '--socket=x11', + '--share=ipc', + // Open GL + '--device=dri', + // Audio output + '--socket=pulseaudio', + // Read/write home directory access + '--filesystem=home', + // Allow communication with network + '--share=network', + // System notifications with libnotify + '--talk-name=org.freedesktop.Notifications', + ], + }, }, }, - }, ].filter(Boolean); /**