Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build-release
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ package () {
rm -v "${archive_filename}"
fi

7z -mx='9' -t"${archive_format}" a "${archive_filename}" .
# Only store files, not folders, folders will be recreated on extraction.
local file_list="$(mktemp)"
find . -type f | cut -c3- | sort > "${file_list}"
7z -mx='9' -snl -t"${archive_format}" a "${archive_filename}" -i@"${file_list}"
rm "${file_list}"
)
}

Expand Down