Skip to content

Commit 129ba7e

Browse files
committed
Use a fixed serial number based on volume label and commit date when creating floppy disk images.
1 parent a414941 commit 129ba7e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,17 @@ jobs:
112112
113113
- name: Create 160k 16-bit DOS Floppy Diskette Image
114114
run: |
115-
mformat -C -i dist/Lua160k.ima -v "LUA DOS" -f 160
115+
label="LUA DOS"
116+
serial="0x$(echo "$label$(git log -1 --format=%ct)" | sha256sum | cut -c1-8)"
117+
mformat -C -i dist/Lua160k.ima -v "$label" -f 160 -N $serial
116118
files=$(find dist/bin/LUA16.EXE demo/core/*.LUA | sort | xargs)
117119
mcopy -i dist/Lua160k.ima $files ::
118120
119121
- name: Create 1.4M Multi-Platform Floppy Diskette Image
120122
run: |
121-
mformat -C -i dist/LuaMulti.ima -v "LUA MULTIOS" -f 1440
123+
label="LUA MULTIOS"
124+
serial="0x$(echo "$label$(git log -1 --format=%ct)" | sha256sum | cut -c1-8)"
125+
mformat -C -i dist/LuaMulti.ima -v "$label" -f 1440 -N $serial
122126
files=$(find dist/bin/*.EXE demo/core/*.LUA demo/xtra/*.LUA | sort | xargs)
123127
mcopy -i dist/LuaMulti.ima $files ::
124128

0 commit comments

Comments
 (0)