OSDN Git Service

[update] : Make alteriso-info to iso root
authorhayao <shun819.mail@gmail.com>
Sun, 23 Aug 2020 14:06:29 +0000 (23:06 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 23 Aug 2020 14:06:29 +0000 (23:06 +0900)
build.sh

index ca47728..7242d06 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1241,6 +1241,21 @@ make_prepare() {
     if [[ "${cleaning}" = true ]]; then
         remove "${work_dir}/${arch}/airootfs"
     fi
+
+    # iso version info
+    local _write_info_file _info_file="${work_dir}/iso/alteriso-info"
+    _write_info_file () {
+        echo "${@}" >> "${_info_file}"
+    }
+    rm -rf "${_info_file}"; touch "${_info_file}"
+    if [[ -d "${script_path}/.git" ]]; then
+        _write_info_file "${iso_application} ${arch} ${iso_version}-$(git rev-parse --short HEAD)"
+    else
+        _write_info_file "${iso_application} ${arch} ${iso_version}"
+    fi
+    _write_info_file "Created by ${iso_publisher}"
+    _write_info_file "Live user name: ${username}"
+    _write_info_file "Live user pass: ${password}"
 }
 
 # Build ISO