feat: 增加x86-64固件打包iso镜像功能
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
# EditorConfig is awesome: https://EditorConfig.org
|
||||||
|
|
||||||
|
# 根目录配置文件
|
||||||
|
root = true
|
||||||
|
|
||||||
|
|
||||||
|
# 默认规则
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
|
||||||
|
# Shell scripts
|
||||||
|
[*.sh]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
|
||||||
|
# Markdown documents
|
||||||
|
[*.md]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
|
||||||
|
[*.{json,yml,yaml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
@@ -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