This commit is contained in:
DarkSky
2025-11-15 23:52:14 +08:00
parent 12fe7a5ced
commit d90eeffe84
2 changed files with 51 additions and 49 deletions

View File

@@ -1,8 +1,9 @@
use super::{history::StoreHistory, store::StoreRef, *};
use crate::sync::{Arc, RwLock};
#[cfg(feature = "events")] #[cfg(feature = "events")]
use publisher::DocPublisher; use publisher::DocPublisher;
use super::{history::StoreHistory, store::StoreRef, *};
use crate::sync::{Arc, RwLock};
#[cfg(feature = "debug")] #[cfg(feature = "debug")]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct DocStoreStatus { pub struct DocStoreStatus {

View File

@@ -111,56 +111,57 @@ const makers = [
}, },
}, },
}, },
!process.env.SKIP_BUNDLE && { !process.env.SKIP_BUNDLE &&
name: '@electron-forge/maker-flatpak', false && {
platforms: ['linux'], name: '@electron-forge/maker-flatpak',
/** @type {import('@electron-forge/maker-flatpak').MakerFlatpakConfig} */ platforms: ['linux'],
config: { /** @type {import('@electron-forge/maker-flatpak').MakerFlatpakConfig} */
options: { config: {
mimeType: linuxMimeTypes, options: {
productName, mimeType: linuxMimeTypes,
bin: productName, productName,
id: fromBuildIdentifier(appIdMap), bin: productName,
icon: iconPngPath, // not working yet id: fromBuildIdentifier(appIdMap),
branch: buildType, icon: iconPngPath, // not working yet
files: [ branch: buildType,
[ files: [
'./resources/affine.metainfo.xml', [
'/usr/share/metainfo/affine.metainfo.xml', './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',
},
], ],
}, ],
], runtimeVersion: '25.08',
finishArgs: [ modules: [
// Wayland/X11 Rendering {
'--socket=wayland', name: 'zypak',
'--socket=x11', sources: [
'--share=ipc', {
// Open GL type: 'git',
'--device=dri', url: 'https://github.com/refi64/zypak',
// Audio output tag: 'v2025.09',
'--socket=pulseaudio', },
// Read/write home directory access ],
'--filesystem=home', },
// Allow communication with network ],
'--share=network', finishArgs: [
// System notifications with libnotify // Wayland/X11 Rendering
'--talk-name=org.freedesktop.Notifications', '--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); ].filter(Boolean);
/** /**