Skip to content

Commit

Permalink
new version 0.0.10 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Feb 14, 2023
1 parent ba75e7f commit ad3b953
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@ jobs:

- name: Download Raspios Lite ARM64 Image
run: |
cd repository/src/image
cd repository/src/image-raspios_lite_arm64
wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2022-09-26/2022-09-22-raspios-bullseye-arm64-lite.img.xz'
- name: Update CustomPiOS Paths
run: |
cd repository/src
../../CustomPiOS/src/update-custompios-paths
cd repository/src/image-raspios_lite_arm64
../../../CustomPiOS/src/update-custompios-paths
- name: Build Image
run: |
sudo modprobe loop
cd repository/src
sudo bash -x ./build_dist
sudo bash -x ./build_dist raspios_lite_arm64
- name: Copy output
id: copy
run: |
source repository/src/config
NOW=$(date +"%Y-%m-%d-%H%M")
IMAGE=$NOW-cube-$DIST_VERSION
cp repository/src/workspace/*.img $IMAGE.img
cp repository/src/workspace-raspios_lite_arm64/*.img $IMAGE.img
gzip $IMAGE.img
sync; sync; sync
echo "::set-output name=image::$IMAGE"
Expand Down
2 changes: 1 addition & 1 deletion src/build_dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export DIST_PATH=${DIR}
export CUSTOM_PI_OS_PATH=$(<${DIR}/custompios_path)
export CUSTOM_PI_OS_PATH="${DIR}/../../CustomPiOS/src"
export PATH=$PATH:$CUSTOM_PI_OS_PATH
echo ${CUSTOM_PI_OS_PATH}

Expand Down
9 changes: 8 additions & 1 deletion src/config
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
export DIST_NAME=cube
export DIST_VERSION=0.0.9
export DIST_VERSION=0.0.10
export MODULES="base(cube)"


if [ "$#" -gt 0 ]; then
export BUILD_VARIANT=$1
export VARIANT_BASE="${DIST_PATH}/variants/$BUILD_VARIANT"
fi


export RPI_IMAGER_NAME="${DIST_NAME} version ${DIST_VERSION}"
export RPI_IMAGER_DESCRIPTION="A Raspberry Pi distribution for servers. Ships Planet out-of-the-box."
export RPI_IMAGER_ICON="https://avatars.githubusercontent.com/u/33208073"
Expand Down
4 changes: 4 additions & 0 deletions src/image-raspios_lite_arm64/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BASE_ARCH=arm64
BASE_IMAGE_PATH=${DIST_PATH}/image-raspios_lite_arm64
BASE_ZIP_IMG=`ls -t $BASE_IMAGE_PATH/*-{raspbian,raspios}-*-arm64-*.zip | head -n 1`
BASE_IGNORE_VARIANT_NAME=yes
5 changes: 0 additions & 5 deletions src/image/README

This file was deleted.

0 comments on commit ad3b953

Please sign in to comment.