-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from RandomCoderOrg/v1.1-fixes
V1.1 fixes
- Loading branch information
Showing
8 changed files
with
123 additions
and
148 deletions.
There are no files selected for viewing
This file contains 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,10 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains 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,5 +1,9 @@ | ||
name: build-udroid | ||
on: [push] | ||
on: | ||
push: | ||
paths: | ||
- '**.sh' | ||
- '**.yml' | ||
jobs: | ||
BuildImpishRaw: | ||
name: build impish | ||
|
This file contains 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,12 +1,21 @@ | ||
# fs-cook | ||
[](https://app.fossa.com/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook?ref=badge_shield) | ||
A project written in bash to make linux tarball building process easier | ||
|
||
[](https://github.com/RandomCoderOrg/fs-cook/actions/workflows/build-raw.yml) | ||
| | badges | | ||
|--|-- | | ||
|build tests ( `impish`, `hirsute`, `jammy` ) | [](https://github.com/RandomCoderOrg/fs-cook/actions/workflows/build-udroid.yml) | | ||
| FOSS LICENSE | [](https://app.fossa.com/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook?ref=badge_shield) | ||
| | ||
|
||
[DEV] Linux tarball building | ||
> ⚠️ warning this code is heavily experimental & work in progress! | ||
> | ||
> most of the feature/code may not work | ||
## What this can do | ||
- can build any latest ubuntu & debian varients | ||
- supports cross architecture building ( requires `binfmt-support` enabled in kernel ) | ||
- make fetch, build, pack process easier | ||
|
||
## License | ||
[](https://app.fossa.com/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook?ref=badge_large) |
This file contains 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 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,70 @@ | ||
#!/usr/bin/env bash | ||
#shellcheck disable=SC1091 | ||
|
||
# this is an example file to BUILD raw file system | ||
# export variable SUITE to set debootstrap suite name (default: hirsute) | ||
|
||
source plugins/envsetup | ||
|
||
export OVERRIDER_COMPRESSION_TYPE | ||
export SUITE | ||
export ENABLE_EXIT | ||
export ENABLE_USER_SETUP | ||
|
||
SUITE="jammy" | ||
frn="out/$SUITE-raw" | ||
OVERRIDER_COMPRESSION_TYPE="gzip" | ||
ENABLE_EXIT=true | ||
ENABLE_USER_SETUP=false | ||
|
||
additional_setup() { | ||
cat <<- EOF > $chroot_dir/etc/apt/sources.list | ||
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | ||
# newer versions of the distribution. | ||
deb $MIRROR $SUITE main restricted | ||
# deb-src $MIRROR $SUITE main restricted | ||
## Major bug fix updates produced after the final release of the | ||
## distribution. | ||
deb $MIRROR $SUITE-updates main restricted | ||
# deb-src $MIRROR $SUITE-updates main restricted | ||
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu | ||
## team. Also, please note that software in universe WILL NOT receive any | ||
## review or updates from the Ubuntu security team. | ||
deb $MIRROR $SUITE universe | ||
# deb-src $MIRROR $SUITE universe | ||
deb $MIRROR $SUITE-updates universe | ||
# deb-src $MIRROR $SUITE-updates universe | ||
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu | ||
## team, and may not be under a free licence. Please satisfy yourself as to | ||
## your rights to use the software. Also, please note that software in | ||
## multiverse WILL NOT receive any review or updates from the Ubuntu | ||
## security team. | ||
deb $MIRROR $SUITE multiverse | ||
# deb-src $MIRROR $SUITE multiverse | ||
deb $MIRROR $SUITE-updates multiverse | ||
# deb-src $MIRROR $SUITE-updates multiverse | ||
## N.B. software from this repository may not have been tested as | ||
## extensively as that contained in the main release, although it includes | ||
## newer versions of some applications which may provide useful features. | ||
## Also, please note that software in backports WILL NOT receive any review | ||
## or updates from the Ubuntu security team. | ||
deb $MIRROR $SUITE-backports main restricted universe multiverse | ||
# deb-src $MIRROR $SUITE-backports main restricted universe multiverse | ||
EOF | ||
|
||
} | ||
|
||
do_build "${frn}-arm64" arm64 | ||
do_compress "${frn}-arm64" | ||
do_build "${frn}-armhf" armhf | ||
do_compress "${frn}-armhf" | ||
do_build "${frn}-amd64" amd64 | ||
do_compress "${frn}-amd64" | ||
|
||
do_unmount "${frn}-arm64" | ||
do_unmount "${frn}-armhf" | ||
do_unmount "${frn}-amd64" | ||
|
||
shout "Build complete..." | ||
ls $frn*tar* | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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