Skip to content

Commit b68e0d6

Browse files
committed
cleanup for release
1 parent 774613e commit b68e0d6

File tree

4 files changed

+66
-11
lines changed

4 files changed

+66
-11
lines changed

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"mkhl.shfmt",
4+
"timonwong.shellcheck"
5+
]
6+
}

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Changes
22

3-
## Unreleased
3+
## 1.0.0 - 2024-10-15
4+
5+
This is the first actual release. Before this point, windows-esd-to-iso was a rolling repository. All changes here are from the original version.
46

57
1. Replaced status messages with nicer, easier-to-read messages in color.
68

79
2. Added error checking for presence of wimlib tools and ESD image before starting.
810

911
3. Added error checking to image count check.
1012

13+
4. Various improvements to code quality.

LICENSE.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
Copyright (c) 2023 Mattie Behrens.
1+
Copyright (c) 2023, 2024 Mattie Behrens.
22

3-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject
9+
to the following conditions:
410

5-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
613

7-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
18+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

windows-esd-to-iso

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
#!/bin/sh
2+
#
3+
# Copyright (c) 2023, 2024 Mattie Behrens.
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining
6+
# a copy of this software and associated documentation files (the
7+
# "Software"), to deal in the Software without restriction, including
8+
# without limitation the rights to use, copy, modify, merge, publish,
9+
# distribute, sublicense, and/or sell copies of the Software, and to
10+
# permit persons to whom the Software is furnished to do so, subject
11+
# to the following conditions:
12+
#
13+
# The above copyright notice and this permission notice shall be
14+
# included in all copies or substantial portions of the Software.
15+
#
16+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
20+
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21+
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23+
#
224

325
# Color support from portable-color <https://mattiebee.dev/portable-color>
426

@@ -77,20 +99,31 @@ print_subtask "Exporting image 1"
7799
wimapply "${esd}" 1 "${tmpdir}"
78100

79101
print_subtask "Exporting image 2"
80-
wimexport "${esd}" 2 "${tmpdir}/sources/boot.wim" --compress=LZX --chunk-size=32K
102+
wimexport "${esd}" 2 \
103+
"${tmpdir}/sources/boot.wim" \
104+
--compress=LZX --chunk-size=32K
81105

82106
print_subtask "Exporting image 3"
83-
wimexport "${esd}" 3 "${tmpdir}/sources/boot.wim" --compress=LZX --chunk-size=32K --boot
107+
wimexport "${esd}" 3 \
108+
"${tmpdir}/sources/boot.wim" \
109+
--compress=LZX --chunk-size=32K --boot
84110

85-
for index in $(seq 4 "${image_count}")
86-
do
111+
for index in $(seq 4 "${image_count}"); do
87112
print_subtask "Exporting image ${index}"
88-
wimexport "${esd}" "${index}" "${tmpdir}/sources/install.esd" --compress=LZMS --chunk-size 128K --recompress
113+
wimexport "${esd}" "${index}" \
114+
"${tmpdir}/sources/install.esd" \
115+
--compress=LZMS --chunk-size 128K --recompress
89116
done
90117

91118
basename="$(basename "${esd}" .esd)"
92119
iso="${basename}.iso"
93120

94121
rm -f "${iso}"
95122
print_task "Creating ${iso}"
96-
hdiutil makehybrid -o "${iso}" -iso -udf -hard-disk-boot -eltorito-boot "${tmpdir}/efi/microsoft/boot/efisys.bin" -iso-volume-name ESD_ISO -udf-volume-name ESD-ISO "${tmpdir}"
123+
hdiutil makehybrid \
124+
-o "${iso}" \
125+
-iso -udf \
126+
-hard-disk-boot -eltorito-boot "${tmpdir}/efi/microsoft/boot/efisys.bin" \
127+
-iso-volume-name ESD_ISO \
128+
-udf-volume-name ESD-ISO \
129+
"${tmpdir}"

0 commit comments

Comments
 (0)