chore: align ark-suac app and refresh appstore zip

This commit is contained in:
Joachim Friberg
2026-03-23 21:23:16 +01:00
parent 9c4265b429
commit 9c5ea400fb
36 changed files with 1611 additions and 3 deletions
@@ -0,0 +1,34 @@
#!/usr/bin/ruby.ruby3.4
require 'json'
db_path = '/home/gameserver/server-files/mods.json'
unless File.exist?(db_path)
print ""
exit! 0
end
begin
mods = JSON.parse(File.read(db_path))
args = "-mods="
counter = 0
mods.each do |mod|
if mod['enabled']
args += ',' if counter > 0
args += mod['mod_id'].to_s
counter += 1
end
end
if counter > 0
print args
end
rescue JSON::ParserError
File.write('/tmp/mod-read-error', 'mods.json is corrupted')
print ""
rescue => err
File.write('/tmp/mod-read-error', err.to_s)
print ""
end