Skip to content

Commit

Permalink
2 part layout
Browse files Browse the repository at this point in the history
  • Loading branch information
meganukebmp authored Nov 24, 2023
1 parent 240a789 commit 0815333
Showing 1 changed file with 34 additions and 16 deletions.
50 changes: 34 additions & 16 deletions src/config
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,48 @@ get_version() {
cat "${ver}"
}

get_img_name() {
local -a types
types=(zip 7z xz)
if [ -n "${DIST_PATH}" ]; then
for i in "${types[@]}"; do
find "${DIST_PATH}/image/" -type f -name "*.${i}" -printf "%p\n"
done
fi

if [ -z "${DIST_PATH}" ]; then
echo ""
fi
}

DIST_VERSION="$(get_version)"
# Hardcoded distro image
BASE_ZIP_IMG="${DIST_PATH}/image/Orangepizero3_1.0.2_debian_bookworm_server_linux6.1.31.img"
DIST_NAME="MainsailOS"

# export Variables
export DIST_NAME
export DIST_VERSION
export BASE_ZIP_IMG

BASE_ARCH="arm64"

# Image source
DOWNLOAD_URL_CHECKSUM="${DOWNLOAD_BASE_URL}/orangepi-orangepi_zero3_1500mb_bullseye.img.xz.sha256"
DOWNLOAD_URL_IMAGE="${DOWNLOAD_BASE_URL}/orangepi-orangepi_zero3_1500mb_bullseye.img.xz"

# partition resizing
BASE_ROOT_PARTITION="2"
BASE_IMAGE_ENLARGEROOT=2500
BASE_IMAGE_RESIZEROOT=600

# export Variables
export BASE_ARCH
export DOWNLOAD_URL_CHECKSUM
export DOWNLOAD_URL_IMAGE
export BASE_ROOT_PARTITION
export BASE_IMAGE_ENLARGEROOT
export BASE_IMAGE_RESIZEROOT

#!/usr/bin/env bash
# Shebang for better file detection

Expand All @@ -35,10 +68,6 @@ BASE_USER_PASSWORD="armbian"
BASE_DISTRO="armbian"
BASE_IMAGE_RASPBIAN="no"

# partition resizing
BASE_ROOT_PARTITION="1"
BASE_IMAGE_ENLARGEROOT=2500
BASE_IMAGE_RESIZEROOT=600
# Compress not needed due compression done in workflow
BASE_RELEASE_COMPRESS=no
# Modules are valid for 32bit and 64bit images
Expand All @@ -51,16 +80,5 @@ export BASE_USER
export BASE_USER_PASSWORD
export BASE_DISTRO
export BASE_IMAGE_RASPBIAN
export BASE_ROOT_PARTITION
export BASE_IMAGE_ENLARGEROOT
export BASE_IMAGE_RESIZEROOT
export BASE_RELEASE_COMPRESS
export MODULES
#!/usr/bin/env bash
# Shebang for better file detection
# shellcheck enable=require-variable-braces

BASE_ARCH="arm64"

# export Variables
export BASE_ARCH

0 comments on commit 0815333

Please sign in to comment.