Skip to content

Commit 3f2105b

Browse files
Merge pull request #25 from ThatMG393/rel-info-test
Modify `/etc/os-release` on build
2 parents c56aee3 + 430bb5d commit 3f2105b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/build-udroid.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,23 @@ on:
44
paths:
55
- "**.sh"
66
- "**.yml"
7+
workflow_dispatch: { }
8+
79
jobs:
810
BuidJammyRaw:
911
name: build Jammy
1012
runs-on: ubuntu-latest
1113
steps:
1214
- name: checkout repo
13-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1416

1517
- name: Docker Setup QEMU
16-
uses: docker/setup-qemu-action@v1.2.0
18+
uses: docker/setup-qemu-action@v2
1719

1820
- name: Satify Dependencies
19-
run: sudo apt-get update; sudo apt-get install git build-essential binfmt-support qemu-user-static debootstrap -y
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install git build-essential binfmt-support qemu-user-static debootstrap -y
2024
2125
- name: Trigger fs-cook
2226
run: sudo bash .github/scripts/build-jammy.sh
@@ -43,10 +47,10 @@ jobs:
4347
runs-on: ubuntu-latest
4448
steps:
4549
- name: checkout repository
46-
uses: actions/checkout@v2
50+
uses: actions/checkout@v3
4751

4852
- name: Docker Setup QEMU
49-
uses: docker/setup-qemu-action@v1.2.0
53+
uses: docker/setup-qemu-action@v2
5054

5155
- name: Satify Dependencies
5256
run: sudo apt-get update; sudo apt-get install git build-essential binfmt-support qemu-user-static debootstrap -y

plugins/envsetup

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ do_build() {
310310
if [ "$(type -t additional_setup)" == "function" ]; then
311311
additional_setup
312312
fi
313-
313+
314+
shout "patching '/etc/os-release'"
315+
sed -i 's/Ubuntu/Ubuntu On Android (Udroid)/g' $target_dir/etc/os-release
316+
314317
if ! $NO_COMPRESSION; then
315318
do_compress "$chroot_dir"
316319
fi

0 commit comments

Comments
 (0)