Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flatpak build manifest #405

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

RomanKharin
Copy link

@RomanKharin RomanKharin commented Jul 18, 2020

SImple manifest for Flatpak.
Notes:

  • Tested on org.Kde.Platform 5.14
  • Uses --device=all, due lack of serial/device portal in flatpak
  • No desktop files

Prepare

  • install flatpak-builder
  • download sdk (flatpak install org.Kde.Platform//5.14 org.Kde.Sdk//5.14)

Build

flatpak-builder build-dir src/com.github.Denvi.Candle.yaml

Test

flatpak-builder --run build-dir src/com.github.Denvi.Candle.yaml Candle

@RomanKharin RomanKharin marked this pull request as ready for review July 18, 2020 09:16
@bieli
Copy link

bieli commented Dec 21, 2022

Great tip ;-)

On Ubuntu Linux 20.04.5 LTS you need additional steps:

sudo apt install flatpak-builder # + 5MB
flatpak install flathub org.kde.Sdk/x86_64/5.14 # + 1 GB
flatpak install flathub org.kde.Platform/x86_64/5.14 # + 1GB
mkdir build-dir
flatpak-builder build-dir src/com.github.Denvi.Candle.yaml

but I can see warnings/errors here like this:

$ flatpak-builder build-dir src/com.github.Denvi.Candle.yaml
Downloading sources
Starting build of com.github.Denvi.Candle
Cache miss, checking out last cache hit
========================================================================
Building module candle in /home/USER/tmp/Candle/.flatpak-builder/build/candle-2
========================================================================
Running: cmake .
CMake Error: The current CMakeCache.txt directory /run/build/candle/CMakeCache.txt is different than the directory /home/USER/tmp/Candle/src where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
Error: module candle: Proces child exited with code 1

After rm build-dir/ -rf I can't see success.

@RomanKharin Maybe you have a solution for this?

@mar0x
Copy link

mar0x commented Dec 22, 2022

Hello,
Please try the version with cmake file fixes here: https://github.com/mar0x/Candle/tree/fixes .
The binary flatpak package uploaded here: https://github.com/mar0x/Candle/releases/tag/v1.1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants