mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 23:37:14 +03:00
[Fix] Reunify Resource File Locations
Running from source and built had these json files in different locations. Fixing to the intended unified spot.
This commit is contained in:
parent
07c5fef535
commit
620188a9f0
4
build.py
4
build.py
@ -77,8 +77,8 @@ def generate_data_files(
|
|||||||
"snd_good.wav",
|
"snd_good.wav",
|
||||||
"snd_bad.wav",
|
"snd_bad.wav",
|
||||||
"modules.p", # TODO: Remove in 6.0
|
"modules.p", # TODO: Remove in 6.0
|
||||||
"resources/modules.json",
|
"modules.json",
|
||||||
"resources/ships.json",
|
"ships.json",
|
||||||
"ships.p", # TODO: Remove in 6.0
|
"ships.p", # TODO: Remove in 6.0
|
||||||
f"{app_name}.VisualElementsManifest.xml",
|
f"{app_name}.VisualElementsManifest.xml",
|
||||||
f"{app_name}.ico",
|
f"{app_name}.ico",
|
||||||
|
@ -57,7 +57,7 @@ if __name__ == "__main__":
|
|||||||
modules['_'.join([reverse_ship_map[name], 'armour', bulkhead])] = {'mass': m['bulkheads'][i]['mass']}
|
modules['_'.join([reverse_ship_map[name], 'armour', bulkhead])] = {'mass': m['bulkheads'][i]['mass']}
|
||||||
|
|
||||||
ships = OrderedDict([(k, ships[k]) for k in sorted(ships)]) # sort for easier diffing
|
ships = OrderedDict([(k, ships[k]) for k in sorted(ships)]) # sort for easier diffing
|
||||||
with open("resources/ships.json", "w") as ships_file:
|
with open("ships.json", "w") as ships_file:
|
||||||
json.dump(ships, ships_file, indent=4)
|
json.dump(ships, ships_file, indent=4)
|
||||||
|
|
||||||
# Module masses
|
# Module masses
|
||||||
@ -92,5 +92,5 @@ if __name__ == "__main__":
|
|||||||
add(modules, 'hpt_multicannon_fixed_medium_advanced', {'mass': 4})
|
add(modules, 'hpt_multicannon_fixed_medium_advanced', {'mass': 4})
|
||||||
|
|
||||||
modules = OrderedDict([(k, modules[k]) for k in sorted(modules)]) # sort for easier diffing
|
modules = OrderedDict([(k, modules[k]) for k in sorted(modules)]) # sort for easier diffing
|
||||||
with open("resources/modules.json", "w") as modules_file:
|
with open("modules.json", "w") as modules_file:
|
||||||
json.dump(modules, modules_file, indent=4)
|
json.dump(modules, modules_file, indent=4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user