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.
Description
Increase the reliability of the build script. The goal of this commit is easier builds in the shell using
org.flatpak.Builder
, either on a host or in a container.Code Clean-Up
build.sh
.sh
tobash
shebang.Stability improvements
exec_flatpak
function that automatically performs actions based upon if running in a container or not.CLI Improvements
build.sh
<action> -h|--help
)-a|--arg
for therun
action.-u|--user
flag passed through to flatpak to avoid making changes to the system.-c|--command
flag, which allows access tobottles-cli
.Community TODOs:
--sandbox
flag.flatpak --help
for further details), that may be useful to bottles users.How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.
./build.sh build -r -u -c bottles-cli -a --help
,./build.sh run -r -u -c bottles
,./build.sh
,./build.sh -h
and other common invocations users may have interest in.-u|--user
flag, and without the-u|--user
flag working, on systems that are configured to support flatpak running as root (not recommended).