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

build: add Flatpak manifest file #2724

Draft
wants to merge 15 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions contrib/build-flatpak.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
export LC_ALL=C
set -e
SECONDS=0

repo_root="$(realpath $(dirname "$0")/..)"
mkdir -p "$repo_root/build"
cd "$repo_root/build"

echo $repo_root
flatpak-builder flatpak-build "$repo_root/contrib/flatpak-manifest.json" --force-clean
flatpak build-export gridcoin-flatpak flatpak-build
flatpak build-bundle gridcoin-flatpak Gridcoin-Research.flatpak us.gridcoin.Gridcoin-Research

echo "Took $SECONDS seconds to build the Flatpak bundle."
61 changes: 61 additions & 0 deletions contrib/flatpak-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"id": "us.gridcoin.Gridcoin-Research",
"branch": "main",
"runtime": "org.kde.Platform",
"runtime-version": "5.15-23.08",
"sdk": "org.kde.Sdk",
"command": "gridcoinresearch",
"rename-desktop-file": "gridcoinresearch.desktop",
"rename-icon": "gridcoinresearch",
"finish-args": [
"--share=ipc",
"--share=network",
"--socket=x11",
"--socket=wayland",
"--device=dri"
],
"cleanup": [
"*.la",
"*.a"
],
"modules": [
{
"name": "libzip",
"cleanup": [ "/bin", "/share" ],
"sources": [
{
"type": "archive",
"url": "https://nih.at/libzip/libzip-1.1.3.tar.xz",
"sha256": "729a295a59a9fd6e5b9fe9fd291d36ae391a9d2be0b0824510a214cfaa05ceee"
}
]
},
{
"name": "boost",
"buildsystem": "simple",
"build-commands": [
"./bootstrap.sh --prefix=/app --with-libraries=system,filesystem,thread,iostreams,test",
"./b2 -j $FLATPAK_BUILDER_N_JOBS install"
],
"sources": [
{
"type": "archive",
"url": "https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.tar.bz2",
"sha256": "8681f175d4bdb26c52222665793eef08490d7758529330f98d3b29dd0735bccc"
}
]
},
{
"name": "Gridcoin-Research",
"buildsystem": "autotools",
"config-opts": ["--with-boost-libdir=/app/lib"],
"sources": [
{
"type": "dir",
"path": ".."
}
]
}
]
}

Loading