feat(electron): upgrade flatpak runtimeversion (#12025)

Close: #9577 

@electron-forge/maker-flatpak use @malept/electron-installer-flatpak for
make installer, in @malept/electron-installer-flatpak use zypak as
module to allow run Chromium based applications that require a sandbox
in a Flatpak environment.

electron-installer-flatpak add zypak module with v2021.01 as default
which may not compatible with runtimeVersion 24.08.

Add modules config in forge.config with zypak v2024.01.17 for
runtimeVersion 24.08 to override the default zypak version.

The flatpak info shows:

![flatpak-24
08](https://github.com/user-attachments/assets/8b4e2309-e420-47fd-bab1-e59e9ff7b342)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated the Flatpak configuration for Linux, including a newer runtime
version and additional module support.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
doufa 2025-06-24 16:53:23 +08:00 committed by GitHub
parent fd962b57db
commit 3186fb8306
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,19 @@ const makers = [
'/usr/share/metainfo/affine.metainfo.xml',
],
],
runtimeVersion: '20.08',
runtimeVersion: '24.08',
modules: [
{
name: 'zypak',
sources: [
{
type: 'git',
url: 'https://github.com/refi64/zypak',
tag: 'v2024.01.17',
},
],
},
],
finishArgs: [
// Wayland/X11 Rendering
'--socket=wayland',