Skip to content

Commit ea87ec0

Browse files
committed
fix: add before and after hashes.json printing
1 parent 9bbc5d1 commit ea87ec0

File tree

3 files changed

+4
-30
lines changed

3 files changed

+4
-30
lines changed

.github/workflows/hash-files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
- name: Create hash files
4040
shell: bash
4141
run: |
42+
echo "Before: $(jq . hashes.json)"
4243
./Simba-Win64.exe --extractopenssl --run ./wasp-data/tools/hash-files.simba
44+
echo "After: $(jq . hashes.json)"
4345
4446
- name: Commit hashes.json
4547
shell: bash
@@ -64,9 +66,7 @@ jobs:
6466
run: |
6567
cd ./wasp-data
6668
while IFS= read -r file; do
67-
# Skip empty lines
6869
[ -z "$file" ] && continue
69-
# Make sure the file exists
7070
if [ ! -f "$file" ]; then
7171
echo "File not found: $file"
7272
continue

hashes.json

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1 @@
1-
{
2-
"finders/house_layout.zip" : "D6FF199D",
3-
"finders/items/data/hash.txt" : "9A10DF19",
4-
"finders/items/data/id.txt" : "A35A5813",
5-
"finders/items/data/item.txt" : "FA52BFF0",
6-
"finders/items/items.zip" : "5379AD1F",
7-
"finders/overheads.zip" : "1F4D08DA",
8-
"finders/prayer.zip" : "0ADB50ED",
9-
"finders/spells.zip" : "1D959BB3",
10-
"fonts/fonts.zip" : "AF078AAF",
11-
"images/equipment.png" : "862F4199",
12-
"images/gametab.png" : "01E8D551",
13-
"images/mm_fixed_mask.png" : "A3215DDA",
14-
"images/mm_resizable_mask.png" : "34785F87",
15-
"jsons/consumables.json" : "5F2994A1",
16-
"jsons/gear.json" : "6E7CA610",
17-
"jsons/item-definitions.zip" : "437F30CE",
18-
"jsons/monsters" : "E4AC5B2E",
19-
"jsons/monsters.zip" : "83299037",
20-
"jsons/weapons.json" : "670C3284",
21-
"map/collision.zip" : "819B0BCD",
22-
"map/heightmap.zip" : "4C39FAA4",
23-
"map/map.zip" : "EA7CB608",
24-
"map/npcs.zip" : "6C6B1FE2",
25-
"map/objects.zip" : "2825A6DA"
26-
}
1+
{"finders/house_layout.zip":"D6FF199D","finders/items/data/hash.txt":"7D03E843","finders/items/data/id.txt":"A35A5813","finders/items/data/item.txt":"FA52BFF0","finders/items/items.zip":"5379AD1F","finders/overheads.zip":"1F4D08DA","finders/prayer.zip":"0ADB50ED","finders/spells.zip":"1D959BB3","fonts/fonts.zip":"AF078AAF","images/equipment.png":"862F4199","images/gametab.png":"01E8D551","images/mm_fixed_mask.png":"A3215DDA","images/mm_resizable_mask.png":"34785F87","jsons/consumables.json":"D0945586","jsons/gear.json":"6E7CA610","jsons/item-definitions.zip":"437F30CE","jsons/monsters":"E4AC5B2E","jsons/monsters.zip":"83299037","jsons/weapons.json":"1A3B8320","map/collision.zip":"819B0BCD","map/heightmap.zip":"4C39FAA4","map/map.zip":"EA7CB608","map/npcs.zip":"6C6B1FE2","map/objects.zip":"2825A6DA"}

tools/hash-files.simba

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ begin
2222
json.AddString(files[i], hash);
2323
end;
2424

25-
WriteLn json.Format();
26-
json.Save(path + 'hashes.json');
25+
json.Save(path + 'hashes.json', [EJSONFormatOption.NO_WHITESPACE, EJSONFormatOption.SINGLE_LINE_OBJ]);
2726
end.

0 commit comments

Comments
 (0)