-
-
Notifications
You must be signed in to change notification settings - Fork 33
package: introduce .deb packaging #223
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
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dd5ff02
README: remove outdated info
dumbmoron b8a517c
package: include apparmor config in tarball
dumbmoron 6c058b3
package/spec: install apparmor config if system supports it
dumbmoron f1b34d8
package: introduce mkdeb script for building .deb packages
dumbmoron 44f45fc
ci: wire up .deb packaging
dumbmoron 2dae649
ci: rename action
dumbmoron 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: Build Linux AppImage for Helium | ||
| name: Build Linux release | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
|
|
||
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,7 @@ | ||
| abi <abi/4.0>, | ||
| include <tunables/global> | ||
|
|
||
| profile helium-bin "/opt/helium/helium" flags=(default_allow) { | ||
| userns, | ||
| include if exists <local/helium-bin> | ||
| } |
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,44 @@ | ||
| #!/bin/bash | ||
| set -euxo pipefail | ||
|
|
||
| _current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
| _root_dir="$(cd "$_current_dir/.." && pwd)" | ||
| _release_dir="$_root_dir/build/release" | ||
| _spec="$_root_dir/package/helium-bin.spec" | ||
|
|
||
| _version=$(python3 "$_root_dir/helium-chromium/utils/helium_version.py" \ | ||
| --tree "$_root_dir/helium-chromium" \ | ||
| --platform-tree "$_root_dir" \ | ||
| --print) | ||
| _tarball="$(realpath "${1:-}")" | ||
|
|
||
| if ! [ -f "$_tarball" ]; then | ||
| echo "usage: $0 <path to .tar.xz from release.sh" >&2 | ||
| exit 1 | ||
| fi | ||
dumbmoron marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| _tarball_basename="$(basename "$_tarball")" | ||
| case "$_tarball_basename" in | ||
| *x86_64*) _deb_arch="amd64" ;; | ||
| *arm64*) _deb_arch="arm64" ;; | ||
| *) exit 1;; | ||
| esac | ||
|
|
||
| _debbuild_dir=$(mktemp -d) | ||
| trap 'rm -rf "$_debbuild_dir"' EXIT | ||
|
|
||
| mkdir -p "$_debbuild_dir"/{BUILD,SOURCES,SPECS,DEBS} | ||
| ln -s "$_tarball" "$_debbuild_dir/SOURCES/" | ||
| cp "$_spec" "$_debbuild_dir/SPECS/" | ||
|
|
||
| debbuild \ | ||
| --define "_topdir $_debbuild_dir" \ | ||
| --define "debbuild 1" \ | ||
| --define "version $_version" \ | ||
| --define "_arch $_deb_arch" \ | ||
| --define "dist %{nil}" \ | ||
| -bb "$_debbuild_dir/SPECS/helium-bin.spec" | ||
|
|
||
| mkdir -p "$_release_dir" | ||
| mv "$_debbuild_dir"/DEBS/*/*.deb "$_release_dir/" | ||
| ls "$_release_dir"/*.deb | ||
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.