Compare commits

...
Sign in to create a new pull request.

59 commits
t-rex ... ci

Author SHA1 Message Date
nesteroff561
a9604e75e5 fix: path to upload iso images
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Has been cancelled
TileOS ISO Builder Wrapper / build-sway (push) Has been cancelled
2025-06-09 10:11:40 +03:00
nesteroff561
592d1d96ac fix runner tag
Some checks failed
TileOS ISO Builder Wrapper / build-sway (push) Has been cancelled
TileOS ISO Builder Wrapper / prebuild (push) Has been cancelled
2025-06-09 10:03:06 +03:00
nesteroff561
2d65487028 disabling ci on forgego, moving to gitlab again
Some checks failed
TileOS ISO Builder Wrapper / build-sway (push) Has been cancelled
TileOS ISO Builder Wrapper / prebuild (push) Has been cancelled
2025-06-09 10:01:07 +03:00
nesteroff561
9fb2bd12b9 change: hardcode storage port
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 37s
TileOS ISO Builder Wrapper / build-sway (push) Failing after 41m17s
2025-06-02 12:48:08 +03:00
nesteroff561
585e770a27 fix: exposing variables while iso uploading
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 54s
TileOS ISO Builder Wrapper / build-sway (push) Failing after 41m56s
2025-06-02 11:50:49 +03:00
nesteroff561
39286a1904 enabling build again; fixing scp command parameters
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 45s
TileOS ISO Builder Wrapper / build-sway (push) Failing after 41m52s
2025-06-02 11:06:30 +03:00
nesteroff561
7008a23b3e disabing upload iso image for some tests
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 55s
TileOS ISO Builder Wrapper / build-sway (push) Has been cancelled
2025-06-02 10:54:53 +03:00
nesteroff561
46520f7162 disabling build stage for some tests 2025-06-02 10:53:39 +03:00
nesteroff561
85abf2e0f1 fix: permissions to ssh key file
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 37s
TileOS ISO Builder Wrapper / build-sway (push) Has been cancelled
2025-06-01 21:36:18 +03:00
nesteroff561
6c68a66e0e fixed secrets exposing
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 29s
TileOS ISO Builder Wrapper / build-sway (push) Failing after 36m46s
2025-06-01 20:56:57 +03:00
nesteroff561
1cb4120988 changed upload iso method
All checks were successful
TileOS ISO Builder Wrapper / prebuild (push) Successful in 59s
TileOS ISO Builder Wrapper / build-sway (push) Successful in 10s
2025-06-01 20:53:29 +03:00
nesteroff561
30a1f8deb3 fixed path
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 40s
TileOS ISO Builder Wrapper / build-sway (push) Has been cancelled
2025-06-01 20:05:25 +03:00
nesteroff561
cd733b8d80 fixed ssh key path
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 29s
TileOS ISO Builder Wrapper / build-sway (push) Failing after 40m23s
2025-06-01 18:48:19 +03:00
nesteroff561
ddd943bb2d fixed ssh key exposing path
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 1m5s
TileOS ISO Builder Wrapper / build-sway (push) Failing after 42m56s
2025-06-01 18:02:55 +03:00
nesteroff561
9caa72d57e deleted creating ssh directory for iso storage ssh key
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 1m8s
TileOS ISO Builder Wrapper / build-sway (push) Failing after 41s
2025-06-01 17:59:36 +03:00
nesteroff561
b190b73923 fixing variable exposing
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Successful in 35s
TileOS ISO Builder Wrapper / build-sway (push) Failing after 31s
2025-06-01 17:57:13 +03:00
nesteroff561
3d30ec51f6 added privileged option
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Failing after 15s
TileOS ISO Builder Wrapper / build-sway (push) Has been skipped
2025-06-01 17:00:12 +03:00
nesteroff561
f2cafa4ec2 added ubuntu for run on virtual machine again
All checks were successful
TileOS ISO Builder Wrapper / prebuild (push) Successful in 3m14s
TileOS ISO Builder Wrapper / build-sway (push) Successful in 23s
2025-06-01 16:35:31 +03:00
nesteroff561
2a0b54ab02 added label to run on specific virtual machine
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Failing after 1m37s
TileOS ISO Builder Wrapper / build-sway (push) Has been skipped
2025-06-01 16:32:48 +03:00
nesteroff561
0dd8ed3015 сучка такая
Some checks failed
TileOS ISO Builder Wrapper / build-sway (push) Has been cancelled
TileOS ISO Builder Wrapper / prebuild (push) Has been cancelled
2025-06-01 16:28:02 +03:00
nesteroff561
5490711050 Revert back using ubuntu container
Some checks failed
TileOS ISO Builder Wrapper / build-sway (push) Has been cancelled
TileOS ISO Builder Wrapper / prebuild (push) Has been cancelled
2025-06-01 16:26:36 +03:00
nesteroff561
451a4659cc fixed exposing ssh key
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Failing after 48s
TileOS ISO Builder Wrapper / build-sway (push) Has been skipped
2025-06-01 16:15:13 +03:00
nesteroff561
a3074c9b97 added using ubuntu container for pipeline
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Failing after 2m13s
TileOS ISO Builder Wrapper / build-sway (push) Has been skipped
2025-06-01 16:10:58 +03:00
nesteroff561
a202ec8da0 я в рот ебал этот гит
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Failing after 1m6s
TileOS ISO Builder Wrapper / build-sway (push) Has been skipped
2025-06-01 16:06:23 +03:00
nesteroff561
2adc63e81f Added container specification for build
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Failing after 24s
TileOS ISO Builder Wrapper / build-sway (push) Has been skipped
2025-06-01 16:01:16 +03:00
nesteroff561
abf8df26f0 Fixed exposing variable
Some checks failed
TileOS ISO Builder Wrapper / prebuild (push) Failing after 0s
TileOS ISO Builder Wrapper / build-sway (push) Has been skipped
2025-06-01 15:49:13 +03:00
nesteroff561
be2cd32f86 correcting grammar error
Some checks failed
TileOS ISO Builder Wrapper / build-sway (push) Failing after 0s
TileOS ISO Builder Wrapper / prebuild (push) Failing after 14s
2025-06-01 15:03:49 +03:00
nesteroff561
677f9df6f3 Moving to Forgejo
Some checks failed
TileOS ISO Builder Wrapper / build-sway (push) Failing after 6s
TileOS ISO Builder Wrapper / prebuild (push) Failing after 24s
2025-06-01 14:58:28 +03:00
nesteroff561
863da42c5a Changed upload direcotry 2025-06-01 12:54:59 +03:00
nesteroff561
a854de67a3 First CI commit 2025-06-01 12:17:00 +03:00
nesteroff561
456cfae6ab Changed path 2025-06-01 03:29:09 +03:00
nesteroff561
4ea7960222 Reverted creating .ssh directory 2025-06-01 02:44:08 +03:00
nesteroff561
93c086c45f Reverted back adding ssh key to root builder 2025-06-01 02:39:04 +03:00
nesteroff561
2f552bb068 Modified ISO storage ssh key interaction 2025-06-01 01:47:12 +03:00
nesteroff561
c5070ebd73 Changing to absolute path 2025-05-31 23:54:54 +03:00
nesteroff561
5c59384007 Added passtrough ssh key to upload container 2025-05-31 23:06:09 +03:00
nesteroff561
16c3792d12 Added upload inside docker container 2025-05-31 22:18:35 +03:00
nesteroff561
f933bb0232 Added removing build directory before build 2025-05-31 21:53:25 +03:00
nesteroff561
e795491415 reverting scp prompt 2025-05-31 21:07:00 +03:00
nesteroff561
1b3f0713e1 Added -i option :) 2025-05-31 20:18:40 +03:00
nesteroff561
401dc8ee04 Added IdentityFile option due deleting config variable 2025-05-31 19:35:11 +03:00
nesteroff561
eba479a4c6 Reverted back from ssh options 2025-05-31 19:31:23 +03:00
nesteroff561
a220e20385 Moved to ssh options 2025-05-31 17:50:14 +03:00
nesteroff561
39d0b64f1e Changed bash to sh 2025-05-31 17:02:45 +03:00
nesteroff561
16ceb444e1 added bash before commands 2025-05-31 17:01:07 +03:00
nesteroff561
48f0c3fa1a Fixed exposing variable 2025-05-30 23:48:46 +03:00
nesteroff561
adc3027dcd Disabled config creation 2025-05-30 22:45:00 +03:00
nesteroff561
2786774f5e Fixed connection string; removed creating ssh config 2025-05-30 22:38:20 +03:00
nesteroff561
e1898b6b22 Usage small variables instead huge config 2025-05-30 22:30:06 +03:00
nesteroff561
f850250694 Fixed runner tag 2025-05-30 21:09:32 +03:00
nesteroff561
e3b39ad79d Added CI 2025-05-30 21:07:39 +03:00
nesteroff561
266abf3468 changed command 2025-05-30 20:58:02 +03:00
nesteroff561
5a887909ce removed rules 2025-05-30 20:56:20 +03:00
nesteroff561
773dea8b83 Added RELEASE variable 2025-05-30 20:54:23 +03:00
nesteroff561
a77792eaa5 Changing build script 2025-05-30 20:52:25 +03:00
ca13729fef Bump version to 1.3 2025-05-24 15:31:25 +04:00
edb12c7ef4 Add command line to choose build variant 2024-11-23 02:35:36 +04:00
d9f72f6ad9 Merge branch 't-rex' into 'master'
Update to 1.2.1

See merge request tile-os/iso-builder!2
2024-11-22 21:47:03 +00:00
78fa450c09 Build test ISO 2024-10-25 00:57:09 +04:00
22 changed files with 363 additions and 148 deletions

View file

@ -0,0 +1,22 @@
name: TileOS Sway ISO Builder
on: [workflow_call]
jobs:
build:
runs-on: [iso-builder]
container:
image: catthehacker/ubuntu:act-22.04
options: --privileged
steps:
-
name: Build image with sway
run: |
eval $(ssh-agent -s)
echo "${{ secrets.STORAGE_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
rm -rf ${PWD}/output/*
mkdir ${PWD}/output
docker run --privileged --rm -i -v ${PWD}/output:/builder/builds -v /proc:/proc builder:latest ./build --desktop sway --release testing
ssh -o StrictHostKeyChecking=no ${{ secrets.STORAGE_USER}}@${{ secrets.STORAGE_HOST }} -p ${{ secrets.STORAGE_PORT}} -i ~/.ssh/id_rsa rm -rf /media/iso/tile-os/testing/sway/*
docker run --rm -e STORAGE_HOST=${{ secrets.STORAGE_HOST }} -e STORAGE_USER=${{ secrets.STORAGE_USER }} -v ${PWD}/output:/builder/builds builder:latest scp -o StrictHostKeyChecking=no -o Port=10300 -o IdentityFile=/builder/id_rsa -p -B /builder/builds/amd64/* ${STORAGE_USER}@${STORAGE_HOST}:/media/iso/tile-os/testing/sway/

View file

@ -0,0 +1,20 @@
on: [workflow_call]
jobs:
prebuild:
runs-on: [iso-builder]
container:
image: catthehacker/ubuntu:act-22.04
options: --privileged
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Build builder image
run: |
eval $(ssh-agent -s)
echo "${{ secrets.STORAGE_SSH_KEY }}" > ./id_rsa
docker build --no-cache -f Dockerfile-builder -t builder:latest .

View file

@ -0,0 +1,16 @@
name: TileOS ISO Builder Wrapper
on:
push:
branches:
- ci
jobs:
prebuild:
uses: ./.forgejo/workflows/prebuild.yaml
secrets: inherit
build-sway:
uses: ./.forgejo/workflows/build-image-sway.yaml
secrets: inherit
needs: [prebuild]

3
.gitignore vendored
View file

@ -1,3 +1,6 @@
tmp/*
builds/*
artifacts/*
#.gitlab-ci.yml
.forgejo
.forgejo/workflows

55
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,55 @@
stages:
- prebuild
- build
- postbuild
prebuild:
stage: prebuild
tags:
- Builder-1
script:
- docker build --no-cache -f Dockerfile-builder -t builder:latest .
tileos-sway-amd64:
when: manual
stage: build
variables:
DESKTOP: sway
tags:
- Builder-1
script:
- eval $(ssh-agent -s)
- mkdir ~/.ssh/
- echo "$BASE64_TILEOS_ISO_STORAGE_KEY" | base64 -d > ~/.ssh/id_rsa
- echo "$TILEOS_ISO_STORAGE_CONFIG" > ~/.ssh/config
- chmod 644 ~/.ssh/config
- chmod 400 ~/.ssh/id_rsa
- docker run --privileged --rm -i -v ${CI_PROJECT_DIR}/output:/builder/builds -v /proc:/proc -e DESKTOP=sway builder:latest ./build --desktop sway --release testing
- ssh -o StrictHostKeyChecking=no tileos@tileos rm -rf /media/iso/tile-os/ci/sway/*
- scp -o StrictHostKeyChecking=no -p -B ${CI_PROJECT_DIR}/output/amd64/* tileos@tileos:/media/iso/tile-os/ci/sway/
tileos-river-amd64:
when: manual
stage: build
variables:
DESKTOP: sway
tags:
- Builder-1
script:
- eval $(ssh-agent -s)
- mkdir ~/.ssh/
- echo "$BASE64_TILEOS_ISO_STORAGE_KEY" | base64 -d > ~/.ssh/id_rsa
- echo "$TILEOS_ISO_STORAGE_CONFIG" > ~/.ssh/config
- chmod 644 ~/.ssh/config
- chmod 400 ~/.ssh/id_rsa
- docker run --privileged --rm -i -v ${CI_PROJECT_DIR}/output:/builder/builds -v /proc:/proc builder:latest ./build --desktop river --release testing
- ssh -o StrictHostKeyChecking=no tileos@tileos rm -rf /media/iso/tile-os/ci/river/*
- scp -o StrictHostKeyChecking=no -p -B ${CI_PROJECT_DIR}/output/amd64/* tileos@tileos:/media/iso/tile-os/ci/river/
mrproper:
stage: postbuild
when: on_success
tags:
- Builder-1
needs:
- tileos-sway-amd64
- tileos-river-amd64
script:
- docker system prune -a -f

5
Dockerfile-builder Normal file
View file

@ -0,0 +1,5 @@
FROM debian:bookworm
RUN echo 'Acquire::http::Proxy "http://10.10.50.23:3142";' > /etc/apt/apt.conf.d/00aptproxy
RUN apt update && apt install -y openssh-client --no-install-recommends && rm -rf /var/lib/cache
WORKDIR /builder
COPY . /builder/

View file

@ -10,16 +10,14 @@ Clone this project & cd into it:
git clone https://gitlab.com/tile-os/iso-builder && cd iso-builder
Configure the channel in the etc/terraform.conf (`dev`, `stable`).
Configure desktop by export `DESKTOP` variable. May be a `river` or `sway`.
See `./build --help` for available options
Run the build for Sway:
Run the build for TileOS Sway stable edition:
docker run --privileged -i -v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
-e DESKTOP=sway \
debian:latest \
/bin/bash -s etc/terraform.conf < build.sh
./build --desktop sway --release stable
When done, your image will be in the `builds` folder.
When done, your image will be in the `builds/amd64` folder.

180
build Executable file
View file

@ -0,0 +1,180 @@
#!/usr/bin/env bash
set -e
# Where we are
BASE_DIR="$PWD"
# Build directory
TMP_DIR="$BASE_DIR/tmp"
# Output directory
BUILDS_DIR="$BASE_DIR/builds"
# Get config
CONFIG_FILE="etc/options"
source "$BASE_DIR"/"$CONFIG_FILE"
# TileOS edition
DESKTOP=
# Repo channel
CHANNEL=
# Release variant
RELEASE=
# Needs for lb config script
export DESKTOP CHANNEL
# check for root permissions
if [[ "$(id -u)" != 0 ]]; then
echo "E: Requires root permissions" > /dev/stderr
exit 1
fi
# List of available options
show_help() {
echo "Using: $0 [OPTIONS]"
echo
echo "Options:"
echo " --desktop <desktop_name> Desktop variant (sway, river, qtile)"
echo " --release <release_variant> Release variant (stable, beta, testing)"
echo " --help Shows this message"
echo
exit 0
}
while [[ $# -gt 0 ]]; do
case $1 in
--desktop)
DESKTOP="$2"
shift 2
;;
--release)
RELEASE="$2"
shift 2
;;
--help)
show_help
;;
*)
echo "Unknown option: $1"
show_help
;;
esac
done
case "$DESKTOP" in
sway|river|qtile)
;;
*)
echo "Error: Invalid value for --desktop!"
show_help
;;
esac
case "$RELEASE" in
stable|beta|testing)
;;
*)
echo "Error; Invalid value for --release!"
show_help
;;
esac
if [ "$RELEASE" == stable ]; then
CHANNEL="stable"
elif [ "$RELEASE" == beta ]; then
# Beta releases use stable repo channel
CHANNEL="stable"
elif [ "$RELEASE" == testing ]; then
CHANNEL="testing"
fi
# Check required dependencies (on Debian or Ubuntu)
check_deps() {
apt update -y && apt install -y lsb-release
dist="$(lsb_release -i -s)"
if [ "$dist" == "Debian" ]; then
apt install -y binutils patch zstd live-build
apt install -y ./debs/debian-keyring*.deb
else
apt install -y binutils patch zstd debootstrap
apt install -y ./debs/*.deb
fi
# Increase number of blocks for creating efi.img.
# This prevents error with "Disk full" on the lb binary_grub-efi stage
patch -f -d /usr/lib/live/build/ < increase_number_of_blocks.patch
}
# Cleanup build environment
cleanup() {
lb clean
rm -rf "$TMP_DIR"
}
# live-build ISO building
build() {
echo -e "
#------------------#
# START BUILD #
#------------------#
"
mkdir -p "$TMP_DIR/$ARCH"
cd "$TMP_DIR/$ARCH" || exit
# remove old configs and copy over new
rm -rf config auto
cp -r "$BASE_DIR"/etc/"$DESKTOP"/* .
# Make sure conffile specified as arg has correct name
cp -f "$BASE_DIR"/"$CONFIG_FILE" options
# Symlink chosen package lists to where live-build will find them
ln -s "package-lists.$PACKAGE_LISTS_SUFFIX" "config/package-lists"
# Configure build
lb config
# Start build
lb build
}
# Make the final ISO
make_iso() {
echo -e "
#---------------------------#
# MOVE OUTPUT TO BUILDS DIR #
#---------------------------#
"
YYYYMMDD="$(date +%Y%m%d%H%M)"
OUTPUT_DIR="$BUILDS_DIR/$ARCH"
mkdir -p "$OUTPUT_DIR"
if [ "$RELEASE" == testing ]; then
FNAME="tileos-$DESKTOP-$VERSION-$RELEASE-$YYYYMMDD-$OUTPUT_SUFFIX-$ARCH"
elif [ "$RELEASE" == beta ]; then
FNAME="tileos-$DESKTOP-$VERSION-$RELEASE-$OUTPUT_SUFFIX-$ARCH"
elif [ "$RELEASE" == stable ]; then
FNAME="tileos-$DESKTOP-$VERSION-$OUTPUT_SUFFIX-$ARCH"
fi
mv "$TMP_DIR/$ARCH/live-image-$ARCH.hybrid.iso" "$OUTPUT_DIR/${FNAME}.iso"
md5sum "$OUTPUT_DIR/${FNAME}.iso" > "$OUTPUT_DIR/${FNAME}.md5.txt"
sha256sum "$OUTPUT_DIR/${FNAME}.iso" > "$OUTPUT_DIR/${FNAME}.sha256.txt"
}
# remove old builds before creating new ones
rm -rf "$BUILDS_DIR/*"
check_deps
cleanup
build
make_iso
cleanup

115
build.sh
View file

@ -1,115 +0,0 @@
#!/bin/bash
set -e
# check for root permissions
if [[ "$(id -u)" != 0 ]]; then
echo "E: Requires root permissions" > /dev/stderr
exit 1
fi
# get config
if [ -n "$1" ]; then
CONFIG_FILE="$1"
else
CONFIG_FILE="etc/terraform.conf"
fi
BASE_DIR="$PWD"
TMP_DIR="$BASE_DIR/tmp"
BUILDS_DIR="$BASE_DIR/builds"
source "$BASE_DIR"/"$CONFIG_FILE"
echo -e "
#----------------------#
# INSTALL DEPENDENCIES #
#----------------------#
"
# Use system live-build if running on Debian
apt-get update && apt-get install -y lsb-release
dist="$(lsb_release -i -s)"
if [ "$dist" == "Debian" ]; then
apt-get install -y binutils patch zstd live-build
dpkg -i ./debs/debian-keyring*.deb
else
apt-get install -y binutils patch zstd debootstrap
dpkg -i ./debs/*.deb
fi
# Increase number of blocks for creating efi.img.
# This prevents error with "Disk full" on the lb binary_grub-efi stage
patch -f -d /usr/lib/live/build/ < increase_number_of_blocks.patch
build () {
BUILD_ARCH="$1"
if [ -d "$TMP_DIR" ]; then
rm -rf "$TMP_DIR"
mkdir -p "$TMP_DIR/$BUILD_ARCH"
else
mkdir -p "$TMP_DIR/$BUILD_ARCH"
fi
cd "$TMP_DIR/$BUILD_ARCH" || exit
# remove old configs and copy over new
rm -rf config auto
cp -r "$BASE_DIR"/etc/$DESKTOP/* .
# Make sure conffile specified as arg has correct name
cp -f "$BASE_DIR"/"$CONFIG_FILE" terraform.conf
# Symlink chosen package lists to where live-build will find them
ln -s "package-lists.$PACKAGE_LISTS_SUFFIX" "config/package-lists"
echo -e "
#------------------#
# LIVE-BUILD CLEAN #
#------------------#
"
lb clean
echo -e "
#-------------------#
# LIVE-BUILD CONFIG #
#-------------------#
"
lb config
echo -e "
#------------------#
# LIVE-BUILD BUILD #
#------------------#
"
lb build
echo -e "
#---------------------------#
# MOVE OUTPUT TO BUILDS DIR #
#---------------------------#
"
YYYYMMDD="$(date +%Y%m%d%H%M)"
OUTPUT_DIR="$BUILDS_DIR/$BUILD_ARCH"
mkdir -p "$OUTPUT_DIR"
if [ "$CHANNEL" == testing ]; then
FNAME="tileos-$DESKTOP-$VERSION-$CHANNEL-$YYYYMMDD-$OUTPUT_SUFFIX-$ARCH"
elif [ "$CHANNEL" == stable ] && [ "$BETA" == true ]; then
FNAME="tileos-$DESKTOP-$VERSION-beta-$OUTPUT_SUFFIX-$ARCH"
elif [ "$CHANNEL" == stable ] && [ "$BETA" == false ]; then
FNAME="tileos-$DESKTOP-$VERSION-$OUTPUT_SUFFIX-$ARCH"
else
echo -e "Error: invalid channel name!"
fi
mv "$TMP_DIR/$BUILD_ARCH/live-image-$BUILD_ARCH.hybrid.iso" "$OUTPUT_DIR/${FNAME}.iso"
md5sum "$OUTPUT_DIR/${FNAME}.iso" > "$OUTPUT_DIR/${FNAME}.md5.txt"
sha256sum "$OUTPUT_DIR/${FNAME}.iso" > "$OUTPUT_DIR/${FNAME}.sha256.txt"
}
# remove old builds before creating new ones
rm -rf "$BUILDS_DIR"
build "$ARCH"

5
etc/miracle/auto/clean Executable file
View file

@ -0,0 +1,5 @@
#! /bin/sh
set -e
export LB_LINUX_FLAVOURS="none"
lb clean noauto "$@"

View file

@ -2,8 +2,10 @@
set -e
. ./terraform.conf
# Include common options
. ./options
# live-build configuration
lb config noauto \
--architectures "$ARCH" \
--mode debian \
@ -15,8 +17,8 @@ lb config noauto \
--bootappend-live "boot=live username=tileos hostname=tileos quiet splash" \
--mirror-bootstrap "$MIRROR_URL" \
--parent-mirror-bootstrap "$MIRROR_URL" \
--mirror-chroot-security "http://deb.debian.org/debian-security/" \
--parent-mirror-chroot-security "http://deb.debian.org/debian-security/" \
--mirror-chroot-security "$MIRROR_SECURITY" \
--parent-mirror-chroot-security "$MIRROR_SECURITY" \
--apt-source-archives false \
--parent-mirror-binary "$MIRROR_URL" \
--keyring-packages "debian-keyring tileos-archive-keyring" \

View file

@ -11,14 +11,7 @@ BASEVERSION="12"
CODENAME="t-rex"
# distribution version
VERSION="1.2.1"
# distribution channel
CHANNEL="stable"
#CHANNEL="testing"
# Beta build
BETA="false"
VERSION="1.3"
# distribution name
NAME="TileOS"
@ -26,6 +19,9 @@ NAME="TileOS"
# mirror to fetch packages from
MIRROR_URL="http://deb.debian.org/debian/"
# debian-security mirror
MIRROR_SECURITY="http://deb.debian.org/debian-security/"
# suffix for generated .iso files
OUTPUT_SUFFIX="desktop"

5
etc/qtile/auto/clean Executable file
View file

@ -0,0 +1,5 @@
#! /bin/sh
set -e
export LB_LINUX_FLAVOURS="none"
lb clean noauto "$@"

View file

@ -2,8 +2,10 @@
set -e
. ./terraform.conf
# Include common options
. ./options
# live-build configuration
lb config noauto \
--architectures "$ARCH" \
--mode debian \
@ -15,8 +17,8 @@ lb config noauto \
--bootappend-live "boot=live username=tileos hostname=tileos quiet splash" \
--mirror-bootstrap "$MIRROR_URL" \
--parent-mirror-bootstrap "$MIRROR_URL" \
--mirror-chroot-security "http://deb.debian.org/debian-security/" \
--parent-mirror-chroot-security "http://deb.debian.org/debian-security/" \
--mirror-chroot-security "$MIRROR_SECURITY" \
--parent-mirror-chroot-security "$MIRROR_SECURITY" \
--apt-source-archives false \
--parent-mirror-binary "$MIRROR_URL" \
--keyring-packages "debian-keyring tileos-archive-keyring" \

5
etc/river/auto/clean Executable file
View file

@ -0,0 +1,5 @@
#! /bin/sh
set -e
export LB_LINUX_FLAVOURS="none"
lb clean noauto "$@"

View file

@ -2,8 +2,10 @@
set -e
. ./terraform.conf
# Include common options
. ./options
# live-build configuration
lb config noauto \
--architectures "$ARCH" \
--mode debian \
@ -15,11 +17,11 @@ lb config noauto \
--bootappend-live "boot=live username=tileos hostname=tileos quiet splash" \
--mirror-bootstrap "$MIRROR_URL" \
--parent-mirror-bootstrap "$MIRROR_URL" \
--mirror-chroot-security "http://deb.debian.org/debian-security/" \
--parent-mirror-chroot-security "http://deb.debian.org/debian-security/" \
--mirror-chroot-security "$MIRROR_SECURITY" \
--parent-mirror-chroot-security "$MIRROR_SECURITY" \
--apt-source-archives false \
--parent-mirror-binary "$MIRROR_URL" \
--keyring-packages debian-keyring \
--keyring-packages "debian-keyring tileos-archive-keyring" \
--apt-options "--yes --option Acquire::Retries=5 --option Acquire::http::Timeout=100" \
--cache-packages false \
--checksums md5 \
@ -27,7 +29,7 @@ lb config noauto \
--binary-images iso-hybrid \
--iso-application "$NAME" \
--iso-volume "$NAME" \
--firmware-chroot true \
--firmware-chroot false \
--zsync false \
--security true \
--updates true \

View file

@ -1,3 +1,3 @@
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
#deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main

5
etc/sway/auto/clean Executable file
View file

@ -0,0 +1,5 @@
#! /bin/sh
set -e
export LB_LINUX_FLAVOURS="none"
lb clean noauto "$@"

View file

@ -2,8 +2,10 @@
set -e
. ./terraform.conf
# Include common options
. ./options
# live-build configuration
lb config noauto \
--architectures "$ARCH" \
--mode debian \
@ -15,8 +17,8 @@ lb config noauto \
--bootappend-live "boot=live username=tileos hostname=tileos quiet splash" \
--mirror-bootstrap "$MIRROR_URL" \
--parent-mirror-bootstrap "$MIRROR_URL" \
--mirror-chroot-security "http://deb.debian.org/debian-security/" \
--parent-mirror-chroot-security "http://deb.debian.org/debian-security/" \
--mirror-chroot-security "$MIRROR_SECURITY" \
--parent-mirror-chroot-security "$MIRROR_SECURITY" \
--apt-source-archives false \
--parent-mirror-binary "$MIRROR_URL" \
--keyring-packages "debian-keyring tileos-archive-keyring" \

View file

@ -1,3 +1,3 @@
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
#deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main

5
etc/swayfx/auto/clean Executable file
View file

@ -0,0 +1,5 @@
#! /bin/sh
set -e
export LB_LINUX_FLAVOURS="none"
lb clean noauto "$@"

View file

@ -2,8 +2,10 @@
set -e
. ./terraform.conf
# Include common options
. ./options
# live-build configuration
lb config noauto \
--architectures "$ARCH" \
--mode debian \
@ -15,8 +17,8 @@ lb config noauto \
--bootappend-live "boot=live username=tileos hostname=tileos quiet splash" \
--mirror-bootstrap "$MIRROR_URL" \
--parent-mirror-bootstrap "$MIRROR_URL" \
--mirror-chroot-security "http://deb.debian.org/debian-security/" \
--parent-mirror-chroot-security "http://deb.debian.org/debian-security/" \
--mirror-chroot-security "$MIRROR_SECURITY" \
--parent-mirror-chroot-security "$MIRROR_SECURITY" \
--apt-source-archives false \
--parent-mirror-binary "$MIRROR_URL" \
--keyring-packages "debian-keyring tileos-archive-keyring" \