apps/kterm: add to autobuilds via submodules (#477)
Build system / Build (es_ES) (push) Successful in 2m6s
Build system / Build (en_US) (push) Successful in 2m9s
Build system / Build (ru_RU) (push) Successful in 2m15s
Build system / Publish Images (push) Successful in 2m13s

Author was okay to upload it to main repo, so I did ths. Also added to ISO.

https://board.kolibrios.org/viewtopic.php?p=80620#p80620
https://git.kolibrios.org/b00bl1k/kterm

---------

Co-authored-by: Burer <burer@kolibrios.org>
Reviewed-on: #477
Reviewed-by: bad_Dr3dd0x <1702+bad_dr3dd0x@noreply.localhost>
Reviewed-by: Mikhail Frolov <mixa.frolov2003@gmail.com>
Co-authored-by: leency <lipatov.kiril@gmail.com>
Co-committed-by: leency <lipatov.kiril@gmail.com>
This commit was merged in pull request #477.
This commit is contained in:
2026-06-25 11:48:39 +00:00
committed by Burer
co-authored by Burer
parent 5fa08beeba
commit 566ce799fe
5 changed files with 72 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
# SPDX-License-Identifier: GPL-2.0-only
# SPDX-FileCopyrightText: 2026 KolibriOS team
name: 'Update kterm submodule'
on:
schedule:
- cron: '0 8 * * 6' # Saturdays at 08:00 (UTC)
workflow_dispatch:
jobs:
bump:
name: 'Bump kterm to upstream'
runs-on: kolibri-toolchain
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Bump kterm and open PR
env:
TOKEN: ${{ github.token }}
API: ${{ github.api_url }}
REPO: ${{ github.repository }}
BRANCH: chore/update-kterm
run: |
set -euo pipefail
git submodule update --remote programs/other/kterm
if git diff --quiet; then
echo "kterm is already up to date"
exit 0
fi
git config user.name "kolibri-bot"
git config user.email "bot@kolibrios.org"
git checkout -B "$BRANCH"
git commit -am "kterm: bump submodule to upstream"
git push -f origin "$BRANCH"
# Open a PR via the Gitea API using the built-in token.
# 201 = created, 409 = a PR for this branch is already open (the
# force-push above already updated it) - both are fine.
http=$(curl -sS -o /tmp/pr.json -w '%{http_code}' -X POST \
-H "Authorization: token ${TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"head\":\"${BRANCH}\",\"base\":\"main\",\"title\":\"kterm: bump submodule to upstream\"}" \
"${API}/repos/${REPO}/pulls")
echo "PR API HTTP status: $http"
cat /tmp/pr.json; echo
if [ "$http" != "201" ] && [ "$http" != "409" ]; then
echo "Failed to create pull request"
exit 1
fi
+4
View File
@@ -1,3 +1,7 @@
[submodule "programs/develop/oberon07"]
path = programs/develop/oberon07
url = https://github.com/AntKrotov/oberon-07-compiler.git
[submodule "programs/other/kterm"]
path = programs/other/kterm
url = https://git.kolibrios.org/b00bl1k/kterm.git
branch = master
+3
View File
@@ -295,6 +295,9 @@ extra_files = {
{"kolibrios/res/system/", "common/signs.png"},
{"kolibrios/utils/vmode", "common/vmode"},
{"kolibrios/utils/texture", "common/utils/texture"},
{"kolibrios/utils/kterm/kterm", VAR_PROGS .. "/other/kterm/kterm"},
{"kolibrios/utils/kterm/serial.sys", VAR_DRVS .. "/serial/serial.sys"},
{"kolibrios/utils/kterm/install.sh", SRC .. "/drivers/serial/install.sh"},
{"kolibrios/utils/cnc_editor/cnc_editor", VAR_PROGS .. "/other/cnc_editor/cnc_editor"},
{"kolibrios/utils/cnc_editor/kolibri.NC", SRC_PROGS .. "/other/cnc_editor/kolibri.NC"},
{"kolibrios/utils/kfm/kfm.ini", "common/File Managers/kfm.ini"},
+5
View File
@@ -0,0 +1,5 @@
#SHS
echo Installing serial driver for kterm...
cp /kolibrios/utils/kterm/serial.sys /sys/drivers/
/sys/loaddrv serial
echo Serial driver successfully installed!