From fe9ec13323c9a57a323727ad4d332c501adca95b Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Fri, 24 Jul 2026 16:16:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0x86-64=E5=9B=BA?= =?UTF-8?q?=E4=BB=B6=E6=89=93=E5=8C=85iso=E9=95=9C=E5=83=8F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 30 ++++++++++++++++++++++++++++++ x86-64_iso.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .editorconfig create mode 100644 x86-64_iso.sh diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5326bde --- /dev/null +++ b/.editorconfig @@ -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 \ No newline at end of file diff --git a/x86-64_iso.sh b/x86-64_iso.sh new file mode 100644 index 0000000..8d204b0 --- /dev/null +++ b/x86-64_iso.sh @@ -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 镜像成功