From e0e4a78dfbe3a1a054a7e1342eac68430c529d96 Mon Sep 17 00:00:00 2001 From: R0flcopt3r <12752060+R0flcopt3r@users.noreply.github.com> Date: Mon, 17 Mar 2025 01:15:55 +0100 Subject: feat: build in tempdir and move files on success (#82) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: build in tempdir and move files on success Before it would delete your outputs before starting the build. That means miss-typing the command for example could lead to losing data. This also creates separate folders for each type to avoid collision. * fix: tempdir naming this follows the convention set in the `_rootful_load_image` target. * fix: delete output folder in clean target * fix: move contents of temp build directory This ensures a flatter folder structure, bib allready seem to ensure there aren't any file name collisions. output folder would look like this after building a raw and qcow2. output ├── image │   └── disk.raw ├── manifest-qcow2.json ├── manifest-raw.json └── qcow2 └── disk.qcow2 * fix: overwrite previous output directory From conversations in https://github.com/ublue-os/image-template/pull/82 this is the wanted behaviour for this project. * revert: overwrite previous output directory This reverts commit 75448d72fa624cea01524d5651c926ae772460bf. * chore(gitignore): ensure build directories are not showing up on diffs --------- Co-authored-by: Tulip Blossom --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index dcaf584..9eee28b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ cosign.key _build_* -output \ No newline at end of file +output +_build-*/** -- cgit v1.2.3