Skip to content

Linux Flatpak Build #861

@TheOriginalBurgerKing

Description

@TheOriginalBurgerKing

Update: Fixed, see comment below

Hello you can see a descriptive overview of the issue here:
WowUp/WowUp.CF#104

I initially tested it with this repo and both have the same outcome. You can see how to install pre-reqs in that issue.

Specific details for this repo:
Electron-builder changes used - mostly defaults from https://www.electron.build/flatpak.html

"linux": {
    "icon": "dist/browser/assets/icons",

    "target": [
      "AppImage",
      {
        "target": "flatpak",
        "arch": ["x64"]  
      }
    ],

    "category": "Utility",

    "desktop": {
      "entry": {
        "Name": "AngularElectron",
        "Comment": "Angular + Electron demo application",
        "Icon": "angular-electron",
        "Terminal": false,
        "Type": "Application",
        "Categories": "Utility;"
      }
    },


    "artifactName": "${productName}-${version}-${arch}.${ext}",
  },
  "flatpak": {
    "category":"Utility",
    "base": "org.electronjs.Electron2.BaseApp",
    "baseVersion":"stable",
    "runtime": "org.freedesktop.Platform",
    "runtimeVersion": "25.08",
    "sdk": "org.freedesktop.Sdk",
    "finishArgs": [
	  "--socket=wayland",
	  "--socket=x11",
	  "--share=ipc",
	  "--device=dri",
	  "--socket=pulseaudio",
	  "--filesystem=home",
	  "--share=network",
	  "--talk-name=org.freedesktop.Notifications",
	]
  }

Run script location:
/var/lib/flatpak/app/com.electron.angular_electron/x86_64/master/<id>/files/bin/electron-wrapper

Run command in wrapper script:
zypak-wrapper "angular-electron" "$@"

Error: /app/bin/electron-wrapper: line 5: zypak-wrapper: command not found

The shortcut's path:
/app/lib/com.electron.angular_electron/angular-electron

Actual executeable location:
/var/lib/flatpak/app/com.electron.angular_electron/x86_64/master/<id>/files/lib/com.electron.angular_electron/angular-electron

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions