mirror of
https://github.com/KDE/kde-linux.git
synced 2026-02-15 10:22:09 -05:00
- add ci builds - add some scripting surrounding spinning up local containers - use btrfs send-receive to populate the image for both speed, precision and reliablity (won't miss ENSPC or something) - no longer generate bootable images through mkosi, we generate two UKIs anyway, mkosis extra work is entirely pointless and as it turns out produces vastly larger UKIs for some reason. probably worth inspecting at some point why that is - the entire build has been moved from relying on arch packages to using kde-builder. this effectively turns the way we build in development also in the way we build for deployment, giving greater familiarity and exercise of code paths - move initrd from dracut to mkinitcpio as it is better integrating with the arch base - the initrd system is still driven by systemd rather than busybox (the initcpio default) - calamares tech still doesn't work entirely but got a bit of polish - basic session blessing support (tracking whether an image is good or not) - boot failure tracking via the UKI filename (foo_1+3-1.efi etc) - pam files imported from arch - font files imported from neon - aggressive debugging via systemd is on for the time being to aid with development - snapd support - general AUR support (really cruddy because we are inside a bwrap that runs with no-new-priviledges which means we can't sudo but arch tools don't want to run as root - so everything is awkwardly detangled with dependency installation happening manually in root scope, then the build as a temporary user, then the installation in root scope again) -
27 lines
783 B
Bash
Executable File
27 lines
783 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
# SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
|
|
|
|
set -e
|
|
|
|
s3="s3cmd \
|
|
--access_key=$AWS_ACCESS_KEY_ID \
|
|
--secret_key=$AWS_SECRET_ACCESS_KEY \
|
|
--host fra1.digitaloceanspaces.com \
|
|
--host-bucket=%(bucket)s.fra1.digitaloceanspaces.com \
|
|
--no-progress"
|
|
|
|
$s3 get s3://kdeos/SHA256SUMS SHA256SUMS || true
|
|
[ -f SHA256SUMS ] || touch SHA256SUMS
|
|
|
|
# More readable this way.
|
|
# shellcheck disable=SC2129
|
|
sha256sum -- *.efi >> SHA256SUMS
|
|
sha256sum -- *.raw >> SHA256SUMS
|
|
sha256sum -- *.tar.zst >> SHA256SUMS
|
|
|
|
$s3 --acl-public put ./*.efi s3://kdeos
|
|
$s3 --acl-public put ./*.raw s3://kdeos
|
|
$s3 --acl-public put ./*.tar.zst s3://kdeos
|
|
$s3 --acl-public put SHA256SUMS s3://kdeos
|