Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Fix: switch to surface (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept authored Sep 19, 2023
1 parent 5b3b81a commit 08ec776
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 95 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Framework
name: Build Surface
on:
schedule:
- cron: '00 10 * * *' # 10:00am everyday
Expand All @@ -25,7 +25,7 @@ jobs:
fail-fast: false
matrix:
image_flavor: [main]
base_name: [framework]
base_name: [surface]
base_image_name: [silverblue, kinoite, vauxite, sericea, base, lxqt, mate]
major_version: [38]
include:
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
labels: |
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.version=${{ steps.labels.outputs.VERSION }}
org.opencontainers.image.description=Framework is an OCI image derived from Universal Blue that serves as an operating system for Framework laptops.
org.opencontainers.image.description=Surface is an OCI image derived from Universal Blue that serves as an operating system for Surface laptops.
# Build the image using Buildah action
- name: Build image
Expand Down
8 changes: 4 additions & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG SOURCE_IMAGE="${SOURCE_IMAGE:-${BASE_IMAGE_NAME}-${IMAGE_FLAVOR}}"
ARG BASE_IMAGE="ghcr.io/ublue-os/${SOURCE_IMAGE}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}"

FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS framework
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS surface
ARG BASE_IMAGE_NAME="${BASE_IMAGE_NAME:-silverblue}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}"

Expand All @@ -13,8 +13,8 @@ ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}"
COPY system_files/ /tmp/
# Copy shared files between all images.
COPY system_files/shared /
COPY framework-install.sh /tmp/framework-install.sh
COPY framework-packages.json /tmp/framework-packages.json
COPY surface-install.sh /tmp/surface-install.sh
COPY surface-packages.json /tmp/surface-packages.json

# Setup specific files and commands for Silverblue
RUN if grep -q "silverblue" <<< "${BASE_IMAGE_NAME}"; then \
Expand All @@ -23,7 +23,7 @@ RUN if grep -q "silverblue" <<< "${BASE_IMAGE_NAME}"; then \
; fi

# Setup things which are the same for every image
RUN /tmp/framework-install.sh && \
RUN /tmp/surface-install.sh && \
systemctl enable tlp && \
systemctl enable fprintd && \
rm -rf /tmp/* /var/* && \
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# framework
# Surface

Work in progress images for Framework Laptops.

[Current Documentation](https://universal-blue.org/images/bluefin/framework) - these images are generic so this documentation page will move.
Work in progress images for Surface Laptops.
4 changes: 2 additions & 2 deletions framework-install.sh → surface-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ RELEASE="$(rpm -E %fedora)"

INCLUDED_PACKAGES=($(jq -r "[(.all.include | (.all, select(.\"$BASE_IMAGE_NAME\" != null).\"$BASE_IMAGE_NAME\")[]), \
(select(.\"$FEDORA_MAJOR_VERSION\" != null).\"$FEDORA_MAJOR_VERSION\".include | (.all, select(.\"$BASE_IMAGE_NAME\" != null).\"$BASE_IMAGE_NAME\")[])] \
| sort | unique[]" /tmp/framework-packages.json))
| sort | unique[]" /tmp/surface-packages.json))
EXCLUDED_PACKAGES=($(jq -r "[(.all.exclude | (.all, select(.\"$BASE_IMAGE_NAME\" != null).\"$BASE_IMAGE_NAME\")[]), \
(select(.\"$FEDORA_MAJOR_VERSION\" != null).\"$FEDORA_MAJOR_VERSION\".exclude | (.all, select(.\"$BASE_IMAGE_NAME\" != null).\"$BASE_IMAGE_NAME\")[])] \
| sort | unique[]" /tmp/framework-packages.json))
| sort | unique[]" /tmp/surface-packages.json))


if [[ "${#EXCLUDED_PACKAGES[@]}" -gt 0 ]]; then
Expand Down
File renamed without changes.
7 changes: 0 additions & 7 deletions system_files/shared/usr/share/ublue-os/just/custom.just

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[org/gnome/desktop/interface]
text-scaling-factor=1.25

[org/gnome/desktop/peripherals/touchpad]
tap-to-click=true

[org/gnome/mutter]
experimental-features=['scale-monitor-framebuffer']
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 08ec776

Please sign in to comment.