Skip to content

Commit 22c1f9c

Browse files
committed
Automatically squish Lua scripts for floppy disk versions (keep Zip versions expanded).
1 parent 84fdec1 commit 22c1f9c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,21 @@ jobs:
143143
dist/bin/LUA4G.EXE
144144
dist/bin/LUANT.EXE
145145
146+
- name: Squish Lua Scripts for Floppy Disk Images
147+
run: |
148+
find demo -name "*.LUA" -type f -exec demo/util/SQUISH.LUA {} +
149+
find demo -name "*.LUA" -type f -exec demo/xtra/DOSFREN.LUA {} +
150+
146151
- name: Set modification time on UPX compressed binaries to the latest commit
147152
run: |
148153
touch --date="$(git log -1 --pretty=format:%cI)" dist/bin/*.ELF dist/bin/*.EXE
149154
155+
- name: Set modification time on squished scripts to their respective commit
156+
run: |
157+
cd demo
158+
git ls-files -z | xargs -0 -I{} bash -c 'touch --date="$(git log -1 --pretty=format:%cI -- "$0")" "$0"' {}
159+
cd ..
160+
150161
- name: Create 160k 16-bit DOS Floppy Diskette Image
151162
run: |
152163
export FAKETIME=$(TZ=UTC0 git show --quiet --date='format-local:%Y-%m-%d %H:%M:%S' --format="%cd")

0 commit comments

Comments
 (0)