feat: 增加x86-64固件打包iso镜像功能
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
source $(pwd)/x86-64.sh
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
cd ${SCRIPT_DIR}
|
||||
|
||||
# 如果img-installer文件夹不存在, 下载img-installer
|
||||
if [ ! -d "${SCRIPT_DIR}/img-installer" ]; then
|
||||
git clone https://github.com/wukongdaily/img-installer.git
|
||||
fi
|
||||
chmod +x "${SCRIPT_DIR}/img-installer/custom.sh"
|
||||
chmod +x "${SCRIPT_DIR}/img-installer/supportFiles/custom/build.sh"
|
||||
|
||||
# 构建ISO固件
|
||||
PROJECT_OUTPUT_DIR="${SCRIPT_DIR}/x86-64_output"
|
||||
TARGET_FILE=$(ls ${PROJECT_OUTPUT_DIR}/*ext4-combined.img.gz)
|
||||
INPUT_FILE=${SCRIPT_DIR}/img-installer/input.img.gz
|
||||
cp $TARGET_FILE $INPUT_FILE
|
||||
cd ${SCRIPT_DIR}/img-installer
|
||||
bash autobuild/autobuild.sh "$INPUT_FILE"
|
||||
mv ${SCRIPT_DIR}/img-installer/output/custom-installer-x86_64.iso ${PROJECT_OUTPUT_DIR}
|
||||
echo ""
|
||||
echo 构建 ISO 镜像成功
|
||||
Reference in New Issue
Block a user