-
Notifications
You must be signed in to change notification settings - Fork 182
build: add Flatpak manifest file #2724
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
Draft
ikolomiko
wants to merge
77
commits into
gridcoin-community:development
Choose a base branch
from
ikolomiko:flatpak-manifest
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
60c74a4
contrib: Create initial Flatpak manifest
ikolomiko 3805d21
contrib: Add script to build a Flatpak bundle
ikolomiko a1f8e13
contrib: Convert sh to bash in build-flatpak
ikolomiko c525962
lint: Remove trailing space in flatpak manifest
ikolomiko a492d16
contrib: Add LC_ALL=C to build-flatpak.sh
ikolomiko 3c24a75
Update contrib/build-flatpak.sh
ikolomiko 712815f
Update contrib/build-flatpak.sh
ikolomiko 16651c6
Update contrib/flatpak-manifest.json
ikolomiko 9616439
formatting: auto-format flatpak-manifest.json
ikolomiko 5471231
contrib: Add requested changes to build-flatpak.sh
ikolomiko aae3192
doc: update windows -fstack-clash-protection doc
fanquake 71958af
diag: fix researcher mode check
div72 55b4b3a
diag: add cpid check
div72 3843765
ci: do not silently fail
div72 c38188e
Add missing switch cases for ALREADY_IN_MEMPOOL
jamescowens a69675e
serialize: allow variants to be serialized
div72 49b0606
test: add unit tests for serializing variants
div72 3747b43
Properly include Boost Array header
theMarix 88e557f
Mark Boost Array's header as an expected include
theMarix bd0d305
Fix occasional segfault on poll type selection in GUI
jamescowens e88ba3f
Update depends zlib to 1.3.1
jamescowens 7e90e77
Initial skeletons for SideStake class
jamescowens 42d5d9b
Add payload and registry machinery for SideStake class
jamescowens 974bec9
The initial implementation of LoadLocalSideStakesFromConfig()
jamescowens 8038bf9
Implement ActiveSideStakeEntries()
jamescowens 234b595
Change miner to use ActiveSideStakeEntries()
jamescowens 10cda3d
Wire up the rest of the sidestake contract machinery
jamescowens 6123026
Add sidestaking entry status to getstakinginfo.
jamescowens cd03e58
Implement RwSettingsUpdated core signal
jamescowens bd06587
Change operation of fEnableSideStaking flag
jamescowens df3d546
Implement enable sidestaking user checkbox in GUI options.
jamescowens 3aaec18
Adjust size of staking frame in options
jamescowens 33875ea
Add description field for sidestake.
jamescowens becbf0f
Split out map for local sidestakes
jamescowens 8b5a338
Create skeletons for sidestaketablemodel.h/cpp
jamescowens f840a2d
Add sidestakingTableWidget to optionsdialog form
jamescowens 112a1e4
Implementation of SideStakeTableModel and sidestakeTableView in options
jamescowens 1162445
Add missing logic to pick up descriptions in LoadLocalSideStakesFromC…
jamescowens 8373ff9
Add icons to sidestake new and edit buttons
jamescowens 43dbaec
Implementation of EditSideStakeDialog
jamescowens 2f5c091
Implement proportional column resizing for SideStakeTableView
jamescowens 88ba3e9
Implement sidestake description validation
jamescowens 34bf0b2
Sidestake class cleanup.
jamescowens b6f8449
Add V13 height conditional for sidestake registry in GetLowestRegistr…
jamescowens a7605c2
Changes to separate local and mandatory sidestakes classwise
jamescowens 6e111fc
Change CBitcoinAddress to CTxDestination in sidestake
jamescowens 8fb13c4
Add serialization support to CScriptID and CNoDestination
jamescowens cac29e3
Add missing IsV13Enabled guard in sidestake BlockValidate
jamescowens 3cbce09
Implement protocol rule for maximum mandatory sidestake allocation total
jamescowens 64b2f1c
Fix logic to require mandatory sidestaking in miner.cpp
jamescowens b8f3a95
Implement mandatory sidestake output checking in ClaimValidator
jamescowens 4d38477
Limit number of mandatory sidestakes in miner
jamescowens cd877fa
Correct addkey for missing parameter count guard for sidestakes
jamescowens c9a1af9
Corrections to miner and validation for mandatory sidestaking
jamescowens 0d7350b
Adjust mandatory sidestake validation comments
jamescowens 1bdb62a
Minor sidestake comment cleanups
jamescowens 5f6152c
Add missing SideStake specializations for ContractToJson
jamescowens ae1e63e
Correct for segfault in variant access - use get_if non-throw
jamescowens 2d09512
Flesh out Fraction class
jamescowens 5658e91
Add unit tests for Fraction class to util_tests
jamescowens 9f9b4ea
Modify sidestake code to use new Allocation class instead of double
jamescowens 61c46f9
Change data input to edit sidestake dialog to Qt::EditRole
jamescowens 8f4b856
Initial implementation of sidestake unit tests
jamescowens a4b37c1
Changes to validator to deal with ToCAmount truncation of remainder
jamescowens 56fde8b
Change equality to greater than or equal in validator comparison
jamescowens 4028b24
Tweaks to Fraction and Sidestake unit tests
jamescowens 68a8cd1
Introduce error strings in validator to prevent misleading error mess…
jamescowens 7890acc
Change out msb in Fraction class based on testing
jamescowens 57f7f6b
Update version to 5.4.5.5 for testnet
jamescowens 3c167a0
Increment version to 5.4.5.6 for development.
jamescowens fa1f358
Correct small bug in sidestaketablemodel for new sidestake entry
jamescowens 16afe23
Enhance fraction addition by using gcd of denominators
jamescowens ec030c9
Enhance fraction multiplication overflow resistance
jamescowens e90a08b
flatpak: make wayland default
ikolomiko 42c7f5c
flatpak: add system tray permission
ikolomiko 066bf49
flatpak: add dbus notification permission
ikolomiko 17ac826
flatpak: give r/o access to BOINC data dirs
ikolomiko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
export LC_ALL=C | ||
set -e | ||
SECONDS=0 | ||
|
||
gc_platform="org.kde.Platform//5.15-23.08" | ||
gc_sdk="org.kde.Sdk//5.15-23.08" | ||
gc_id="us.gridcoin.Gridcoin-Research" | ||
gc_output_file="Gridcoin-Research.flatpak" | ||
gc_repo_root="$(realpath "$(dirname "$0")/..")" | ||
gc_builddir="$gc_repo_root/build" | ||
|
||
# Add the required flathub.org repo to the list of local repos, if it wasn't added earlier. | ||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo | ||
|
||
# Check if the required SDK and runtime are installed. If not, install them. | ||
flatpak info "$gc_platform" &>/dev/null || flatpak install --noninteractive -y flathub "$gc_platform" | ||
flatpak info "$gc_sdk" &>/dev/null || flatpak install --noninteractive -y flathub "$gc_sdk" | ||
|
||
echo "Started building the Gridcoin-Research Flatpak bundle..." | ||
mkdir -p "$gc_builddir" | ||
flatpak-builder --state-dir="$gc_builddir/flatpak-cache" "$gc_builddir/flatpak-build" "$gc_repo_root/contrib/flatpak-manifest.json" --force-clean | ||
flatpak build-export "$gc_builddir/gridcoin-flatpak" "$gc_builddir/flatpak-build" | ||
flatpak build-bundle "$gc_builddir/gridcoin-flatpak" "$gc_builddir/$gc_output_file" "$gc_id" | ||
|
||
relative_output="$(realpath --relative-to="$PWD" "$gc_builddir/$gc_output_file")" | ||
echo "" | ||
echo "Took $SECONDS seconds to build the Flatpak bundle. You can find the output in $relative_output" | ||
echo "To install it, run the command below:" | ||
echo "flatpak install $relative_output" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"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=wayland", | ||
"--socket=fallback-x11", | ||
"--device=dri", | ||
"--talk-name=org.kde.StatusNotifierWatcher", | ||
"--talk-name=org.freedesktop.Notifications", | ||
"--filesystem=~/.var/app/edu.berkeley.BOINC:ro", | ||
"--filesystem=/var/lib/boinc-client:ro", | ||
"--filesystem=/var/lib/boinc:ro" | ||
], | ||
"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": ".." | ||
}, | ||
{ | ||
"type": "shell", | ||
"commands": [ | ||
"./autogen.sh" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.