Publish client 5.1.44 and migrate OS update delivery to git.iomatex.com
This commit is contained in:
parent
6831198f88
commit
1d10037325
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Console 3.1.29 — update domain migration
|
||||||
|
|
||||||
|
- Install shared Git delivery with git.iomatex.com as its canonical HTTPS host.
|
||||||
|
- Normalize legacy saved hosts in stage checks and package downloads; retain exact-host trust, TLS verification, pinned commits and checksums.
|
||||||
|
- Bootstrap defaults to git.iomatex.com; legacy installer URLs and virtual APT paths remain accepted.
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
# stage_itscreen 1.0.34 — EVAx10 5.1.44
|
||||||
|
|
||||||
|
- Publish Debian ARM64 client from the common release source in release-provenance.json.
|
||||||
|
- Shared Git delivery normalizes saved git.it-screen.com sources to git.iomatex.com before HTTPS requests.
|
||||||
|
- Existing virtual APT addresses remain readable; new APT sources use git.iomatex.com.
|
||||||
|
- Registration, device identity, media and schedules are preserved.
|
||||||
|
- If the old domain is already blocked, use the new-domain bootstrap once to install this delivery owner.
|
||||||
|
|
@ -4,7 +4,7 @@ set -Eeuo pipefail
|
||||||
[[ ${EUID:-$(id -u)} -eq 0 ]] || exec sudo -E bash "$0" "$@"
|
[[ ${EUID:-$(id -u)} -eq 0 ]] || exec sudo -E bash "$0" "$@"
|
||||||
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
GIT_URL=${IOMATEX_GIT_URL:-https://git.it-screen.com/An-J/Iomatex_OS.git}
|
GIT_URL=${IOMATEX_GIT_URL:-https://git.iomatex.com/An-J/Iomatex_OS.git}
|
||||||
GIT_BRANCH=${IOMATEX_GIT_BRANCH:-ci-cd}
|
GIT_BRANCH=${IOMATEX_GIT_BRANCH:-ci-cd}
|
||||||
CHECKOUT_DIR=${IOMATEX_GIT_DIR:-/userdata/Iomatex_OS}
|
CHECKOUT_DIR=${IOMATEX_GIT_DIR:-/userdata/Iomatex_OS}
|
||||||
STAGES=stage_env,stage_wifi,stage_mqtt,stage_ui,stage_avahi,stage_cockpit,stage_itscreen,stage_reverse_tunnels
|
STAGES=stage_env,stage_wifi,stage_mqtt,stage_ui,stage_avahi,stage_cockpit,stage_itscreen,stage_reverse_tunnels
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ POST_REBOOT_UNIT_PATH="/etc/systemd/system/${POST_REBOOT_UNIT}"
|
||||||
POST_REBOOT_AUTOSTART="iomatex-local-installer-post-reboot.desktop"
|
POST_REBOOT_AUTOSTART="iomatex-local-installer-post-reboot.desktop"
|
||||||
POST_REBOOT_AUTOSTART_PATH="/etc/xdg/autostart/${POST_REBOOT_AUTOSTART}"
|
POST_REBOOT_AUTOSTART_PATH="/etc/xdg/autostart/${POST_REBOOT_AUTOSTART}"
|
||||||
|
|
||||||
IOMATEX_GIT_URL="${IOMATEX_GIT_URL:-https://git.it-screen.com/An-J/Iomatex_OS.git}"
|
IOMATEX_GIT_URL="${IOMATEX_GIT_URL:-https://git.iomatex.com/An-J/Iomatex_OS.git}"
|
||||||
IOMATEX_GIT_BRANCH="${IOMATEX_GIT_BRANCH:-ci-cd}"
|
IOMATEX_GIT_BRANCH="${IOMATEX_GIT_BRANCH:-ci-cd}"
|
||||||
IOMATEX_GIT_DIR="${IOMATEX_GIT_DIR:-/opt/iomatex/Iomatex_OS}"
|
IOMATEX_GIT_DIR="${IOMATEX_GIT_DIR:-/opt/iomatex/Iomatex_OS}"
|
||||||
IOMATEX_GIT_TOKEN="${IOMATEX_GIT_TOKEN:-}"
|
IOMATEX_GIT_TOKEN="${IOMATEX_GIT_TOKEN:-}"
|
||||||
|
|
@ -206,7 +206,7 @@ Behavior:
|
||||||
- stops on first stage failure
|
- stops on first stage failure
|
||||||
|
|
||||||
Git defaults:
|
Git defaults:
|
||||||
- IOMATEX_GIT_URL=https://git.it-screen.com/An-J/Iomatex_OS.git
|
- IOMATEX_GIT_URL=https://git.iomatex.com/An-J/Iomatex_OS.git
|
||||||
- IOMATEX_GIT_BRANCH=ci-cd
|
- IOMATEX_GIT_BRANCH=ci-cd
|
||||||
- IOMATEX_GIT_DIR=/opt/iomatex/Iomatex_OS
|
- IOMATEX_GIT_DIR=/opt/iomatex/Iomatex_OS
|
||||||
EOF
|
EOF
|
||||||
|
|
@ -1427,7 +1427,7 @@ else
|
||||||
SOURCE_COMMIT=""
|
SOURCE_COMMIT=""
|
||||||
else
|
else
|
||||||
if [[ "$USE_GIT_SOURCE" -eq 1 ]]; then
|
if [[ "$USE_GIT_SOURCE" -eq 1 ]]; then
|
||||||
[[ "$GIT_URL" == https://git.it-screen.com/* ]] || die "Only our Git is allowed"
|
[[ ( "$GIT_URL" == https://git.iomatex.com/* || "$GIT_URL" == https://git.it-screen.com/* ) && "$GIT_URL" != *'@'* && "$GIT_URL" != *'?'* && "$GIT_URL" != *'#'* ]] || die "Only our Git is allowed"
|
||||||
die "Use install_iomatex_edge.sh to update the lightweight snapshot; full Git clones on Edge are disabled"
|
die "Use install_iomatex_edge.sh to update the lightweight snapshot; full Git clones on Edge are disabled"
|
||||||
else
|
else
|
||||||
PROJECT_DIR="$SCRIPT_DIR"
|
PROJECT_DIR="$SCRIPT_DIR"
|
||||||
|
|
|
||||||
|
|
@ -26,13 +26,14 @@ import urllib.error
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
HOST = 'git.it-screen.com'
|
HOST = 'git.iomatex.com'
|
||||||
ALLOWED_HOSTS = (HOST, 'git.iomatex.com')
|
ALLOWED_HOSTS = (HOST, 'git.it-screen.com')
|
||||||
|
|
||||||
def git_host(value=HOST):
|
def git_host(value=HOST):
|
||||||
if value not in ALLOWED_HOSTS:
|
if value not in ALLOWED_HOSTS:
|
||||||
raise ValueError('Unsupported Git host')
|
raise ValueError('Unsupported Git host')
|
||||||
return value
|
# Normalize legacy saved credentials/snapshots before any network request.
|
||||||
|
return HOST
|
||||||
|
|
||||||
STATE = Path('/var/lib/iomatex/packages')
|
STATE = Path('/var/lib/iomatex/packages')
|
||||||
AUTH = Path('/etc/iomatex/git-credentials.json')
|
AUTH = Path('/etc/iomatex/git-credentials.json')
|
||||||
|
|
@ -424,7 +425,7 @@ def activate(root):
|
||||||
CACHE.mkdir(parents=True, exist_ok=True)
|
CACHE.mkdir(parents=True, exist_ok=True)
|
||||||
(CACHE / 'partial').mkdir(exist_ok=True)
|
(CACHE / 'partial').mkdir(exist_ok=True)
|
||||||
apt = Path('/etc/apt')
|
apt = Path('/etc/apt')
|
||||||
(apt / 'iomatex-offline.list').write_text('deb [trusted=yes] iomatex://git.it-screen.com/ ./\n')
|
(apt / 'iomatex-offline.list').write_text('deb [trusted=yes] iomatex://git.iomatex.com/ ./\n')
|
||||||
(apt / 'apt.conf.d/99iomatex-offline').write_text(
|
(apt / 'apt.conf.d/99iomatex-offline').write_text(
|
||||||
'Dir::Etc::sourcelist "/etc/apt/iomatex-offline.list";\n'
|
'Dir::Etc::sourcelist "/etc/apt/iomatex-offline.list";\n'
|
||||||
'Dir::Etc::sourceparts "-";\n'
|
'Dir::Etc::sourceparts "-";\n'
|
||||||
|
|
@ -475,7 +476,7 @@ def message(code, fields):
|
||||||
|
|
||||||
def apt_key(uri, objects):
|
def apt_key(uri, objects):
|
||||||
u = urllib.parse.urlparse(uri)
|
u = urllib.parse.urlparse(uri)
|
||||||
if u.scheme != 'iomatex' or u.netloc != HOST or u.query or u.fragment:
|
if u.scheme != 'iomatex' or u.netloc not in ALLOWED_HOSTS or u.query or u.fragment:
|
||||||
raise ValueError('Unsupported APT source')
|
raise ValueError('Unsupported APT source')
|
||||||
# APT's method protocol may already decode the URI displayed by apt-get.
|
# APT's method protocol may already decode the URI displayed by apt-get.
|
||||||
# Preserve literal %3a in Git filenames; never decode it twice into an epoch colon.
|
# Preserve literal %3a in Git filenames; never decode it twice into an epoch colon.
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@ class DeliveryTest(unittest.TestCase):
|
||||||
with patch.object(d.urllib.request, 'build_opener') as opener:
|
with patch.object(d.urllib.request, 'build_opener') as opener:
|
||||||
d.open_git('An-J/Iomatex_OS', 'branches/ci-cd', {'username': 'u', 'password': 'p', 'host': host})
|
d.open_git('An-J/Iomatex_OS', 'branches/ci-cd', {'username': 'u', 'password': 'p', 'host': host})
|
||||||
request = opener.return_value.open.call_args.args[0]
|
request = opener.return_value.open.call_args.args[0]
|
||||||
self.assertEqual('https://' + host + '/api/v1/repos/An-J/Iomatex_OS/branches/ci-cd', request.full_url)
|
self.assertEqual('https://git.iomatex.com/api/v1/repos/An-J/Iomatex_OS/branches/ci-cd', request.full_url)
|
||||||
for host in ['evil.example', 'git.iomatex.com.evil', 'user@git.iomatex.com', 'git.iomatex.com:443']:
|
for host in ['evil.example', 'git.iomatex.com.evil', 'user@git.iomatex.com', 'git.iomatex.com:443']:
|
||||||
with self.assertRaises(ValueError):
|
with self.assertRaises(ValueError):
|
||||||
d.open_git('An-J/Iomatex_OS', 'branches/ci-cd', {'username': 'u', 'password': 'p', 'host': host})
|
d.open_git('An-J/Iomatex_OS', 'branches/ci-cd', {'username': 'u', 'password': 'p', 'host': host})
|
||||||
|
|
||||||
def test_package_download_uses_persisted_host(self):
|
def test_package_download_uses_persisted_host(self):
|
||||||
data = b'package'
|
data = b'package'
|
||||||
config = {'host': 'git.iomatex.com', 'repo': 'An-J/Iomatex_OS', 'commit': 'a'*40,
|
config = {'host': 'git.it-screen.com', 'repo': 'An-J/Iomatex_OS', 'commit': 'a'*40,
|
||||||
'objects': {'debian/a.deb': {'path': 'third_party/a.deb', 'sha256': hashlib.sha256(data).hexdigest()}}}
|
'objects': {'debian/a.deb': {'path': 'third_party/a.deb', 'sha256': hashlib.sha256(data).hexdigest()}}}
|
||||||
with tempfile.TemporaryDirectory() as folder, patch.object(d, 'open_git', return_value=io.BytesIO(data)) as request:
|
with tempfile.TemporaryDirectory() as folder, patch.object(d, 'open_git', return_value=io.BytesIO(data)) as request:
|
||||||
d.download_object(config, 'debian/a.deb', Path(folder)/'a.deb', {'username': 'u', 'password': 'p'})
|
d.download_object(config, 'debian/a.deb', Path(folder)/'a.deb', {'username': 'u', 'password': 'p'})
|
||||||
|
|
@ -130,7 +130,8 @@ class DeliveryTest(unittest.TestCase):
|
||||||
key='debian/xserver-common_2%3a1.0+deb11_all.deb'
|
key='debian/xserver-common_2%3a1.0+deb11_all.deb'
|
||||||
objects={key:{}}
|
objects={key:{}}
|
||||||
for path in [key, 'debian/xserver-common_2%253a1.0%2bdeb11_all.deb']:
|
for path in [key, 'debian/xserver-common_2%253a1.0%2bdeb11_all.deb']:
|
||||||
self.assertEqual(key,d.apt_key('iomatex://git.it-screen.com/'+path,objects))
|
for host in d.ALLOWED_HOSTS:
|
||||||
|
self.assertEqual(key,d.apt_key('iomatex://'+host+'/'+path,objects))
|
||||||
|
|
||||||
def test_unchanged_snapshot_file_is_reused_without_network(self):
|
def test_unchanged_snapshot_file_is_reused_without_network(self):
|
||||||
with tempfile.TemporaryDirectory() as folder:
|
with tempfile.TemporaryDirectory() as folder:
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
"version": "1.0.1"
|
"version": "1.0.1"
|
||||||
},
|
},
|
||||||
"stage_ui": {
|
"stage_ui": {
|
||||||
"version": "3.1.28"
|
"version": "3.1.29"
|
||||||
},
|
},
|
||||||
"stage_avahi": {
|
"stage_avahi": {
|
||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
},
|
},
|
||||||
"stage_itscreen": {
|
"stage_itscreen": {
|
||||||
"version": "1.0.33"
|
"version": "1.0.34"
|
||||||
},
|
},
|
||||||
"stage_reverse_tunnels": {
|
"stage_reverse_tunnels": {
|
||||||
"version": "1.0.2"
|
"version": "1.0.2"
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
52d018fe3580f903d7b46fd94bb22d8c88aa321156107eb66998926a218ffcc1 itscreen
|
d74970623d228c8a262bcae847924aeb3ba175bc720d3a0ad62085438d60e69d itscreen
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
5.1.42
|
5.1.44
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
"schema_version": 1,
|
"schema_version": 1,
|
||||||
"client_version": "5.1.42",
|
"client_version": "5.1.44",
|
||||||
"stage_version": "1.0.33",
|
"stage_version": "1.0.34",
|
||||||
"platform": "linux",
|
"platform": "linux",
|
||||||
"architecture": "arm64",
|
"architecture": "arm64",
|
||||||
"source_repository": "https://git.it-screen.com/Development/It-screenClient.git",
|
"source_repository": "https://git.iomatex.com/Development/It-screenClient.git",
|
||||||
"source_branch": "iomatex_dev",
|
"source_branch": "iomatex_dev",
|
||||||
"source_commit": "c75170b64ccff88b0a80edf9e21d1382960c9834",
|
"source_commit": "a400da33cbf1cec919b500e6ff721d43de90110f",
|
||||||
"binary": "itscreen",
|
"binary": "itscreen",
|
||||||
"sha256": "52d018fe3580f903d7b46fd94bb22d8c88aa321156107eb66998926a218ffcc1",
|
"sha256": "d74970623d228c8a262bcae847924aeb3ba175bc720d3a0ad62085438d60e69d",
|
||||||
"assembly_method": "Clean release cross-build from git archive; Debian 11 ARM64 Qt 5.15.2 sysroot; ldd and executable version verified on ARM64 bench",
|
"assembly_method": "Clean release cross-build from git archive; Debian 11 ARM64 Qt 5.15.2 sysroot",
|
||||||
"native_version_code": 5010042
|
"native_version_code": 5010044
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"version": "1.0.33"
|
"version": "1.0.34"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"version": "3.1.28"
|
"version": "3.1.29"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue