forked from RimSort/RimSort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
distribute.py
executable file
·498 lines (461 loc) · 18.3 KB
/
distribute.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
#!/usr/bin/env python3
from io import BytesIO
import os
from pathlib import Path
import platform
import requests
import shutil
from stat import S_IEXEC
import subprocess
import sys
import time
from zipfile import ZipFile
"""
Setup environment
"""
_ARCH = platform.architecture()[0]
_CWD = os.getcwd()
_PROCESSOR = platform.processor()
if _PROCESSOR == "":
_PROCESSOR = platform.machine()
_SYSTEM = platform.system()
PY_CMD = sys.executable
if _SYSTEM == "Darwin" and _PROCESSOR == "arm":
_NUITKA_CMD = [
PY_CMD,
"-m",
"nuitka",
"--assume-yes-for-downloads",
"--standalone",
# "--onefile",
"--macos-create-app-bundle",
"--macos-app-icon=./themes/default-icons/AppIcon_a.icns",
"--enable-plugin=pyside6",
"--include-data-dir=./themes/=themes",
"--include-data-dir=./todds/=todds",
"--include-data-file=./update.sh=update.sh",
f"--include-data-file=./libs/SteamworksPy_{_PROCESSOR}.dylib=SteamworksPy.dylib",
"--include-data-file=./libs/libsteam_api.dylib=libsteam_api.dylib",
"--include-data-file=./steam_appid.txt=steam_appid.txt",
"--include-package=steamworks",
"app/__main__.py",
"--output-dir=./build/",
"--output-filename=RimSort",
]
elif _SYSTEM == "Darwin" and _PROCESSOR == "i386":
_NUITKA_CMD = [
PY_CMD,
"-m",
"nuitka",
"--assume-yes-for-downloads",
"--standalone",
# "--onefile",
"--macos-create-app-bundle",
"--macos-app-icon=./themes/default-icons/AppIcon_a.icns",
"--enable-plugin=pyside6",
"--include-data-dir=./themes/=themes",
"--include-data-dir=./todds/=todds",
"--include-data-file=./update.sh=update.sh",
f"--include-data-file=./libs/SteamworksPy_{_PROCESSOR}.dylib=SteamworksPy.dylib",
"--include-data-file=./libs/libsteam_api.dylib=libsteam_api.dylib",
"--include-data-file=./steam_appid.txt=steam_appid.txt",
"--include-package=steamworks",
"app/__main__.py",
"--output-dir=./build/",
"--output-filename=RimSort",
]
elif _SYSTEM == "Linux":
_NUITKA_CMD = [
PY_CMD,
"-m",
"nuitka",
"--assume-yes-for-downloads",
"--standalone",
# "--onefile",
"--linux-icon=./themes/default-icons/AppIcon_a.png",
"--enable-plugin=pyside6",
"--include-data-dir=./themes/=themes",
"--include-data-dir=./todds/=todds",
"--include-data-file=./update.sh=update.sh",
f"--include-data-file=./libs/SteamworksPy_{_PROCESSOR}.so=SteamworksPy.so",
"--include-data-file=./libs/libsteam_api.so=libsteam_api.so",
"--include-data-file=./steam_appid.txt=steam_appid.txt",
"--include-package=steamworks",
"app/__main__.py",
"--output-dir=./build/",
"--output-filename=RimSort",
]
elif _SYSTEM == "Windows" and _ARCH == "64bit":
_NUITKA_CMD = [
PY_CMD,
"-m",
"nuitka",
"--assume-yes-for-downloads",
"--standalone",
"--disable-console",
# "--onefile",
"--windows-icon-from-ico=./themes/default-icons/AppIcon_a.png",
"--enable-plugin=pyside6",
"--include-data-dir=./themes/=themes",
"--include-data-dir=./todds/=todds",
"--include-data-file=./update.bat=update.bat",
"--include-data-file=./libs/SteamworksPy64.dll=SteamworksPy64.dll",
"--include-data-file=./libs/steam_api64.dll=steam_api64.dll",
"--include-data-file=./steam_appid.txt=steam_appid.txt",
"--include-package=steamworks",
"app/__main__.py",
"--output-dir=./build/",
"--output-filename=RimSort",
]
else:
print(f"Unsupported SYSTEM: {_SYSTEM} {_ARCH} with {_PROCESSOR}")
print("Exiting...")
GET_REQ_CMD = [PY_CMD, "-m", "pip", "install", "-r", "requirements.txt"]
STEAMFILES_BUILD_CMD = [PY_CMD, "setup.py", "install"]
STEAMFILES_SRC = os.path.join(_CWD, "submodules", "steamfiles")
SUBMODULE_UPDATE_INIT_CMD = ["git", "submodule", "update", "--init", "--recursive"]
def get_rimsort_deps() -> None:
print("Installing core RimSort requirements with pip...")
_execute(GET_REQ_CMD)
print("Ensuring we have all submodules initiated & up-to-date...")
_execute(SUBMODULE_UPDATE_INIT_CMD)
# Get Steamfiles requirements
print("Building submodules...")
print(f"Changing directory to {STEAMFILES_SRC}")
os.chdir(STEAMFILES_SRC)
print("Building steamfiles module...")
_execute(STEAMFILES_BUILD_CMD)
print(f"Leaving {STEAMFILES_SRC}")
os.chdir(_CWD)
def build_steamworkspy() -> None:
# Setup environment
print("Setting up environment...")
MODULE_SRC_PATH = os.path.join(_CWD, "submodules", "SteamworksPy", "steamworks")
STEAMWORKSPY_BIN_DARWIN = f"SteamworksPy_{_PROCESSOR}.dylib"
STEAMWORKSPY_BIN_DARWIN_LINK_PATH = os.path.join(_CWD, "SteamworksPy.dylib")
DARWIN_COMPILE_CMD = [
"g++",
"-std=c++11",
"-o",
f"{STEAMWORKSPY_BIN_DARWIN}",
"-shared",
"-fPIC",
"SteamworksPy.cpp",
"-l",
"steam_api",
"-L.",
]
STEAMWORKSPY_BIN_LINUX = f"SteamworksPy_{_PROCESSOR}.so"
STEAMWORKSPY_BIN_LINUX_LINK_PATH = os.path.join(_CWD, "SteamworksPy.so")
LINUX_COMPILE_CMD = [
"g++",
"-std=c++11",
"-o",
f"{STEAMWORKSPY_BIN_LINUX}",
"-shared",
"-fPIC",
"SteamworksPy.cpp",
"-l",
"steam_api",
"-L.",
]
STEAMWORKSPY_BIN_WIN32 = "SteamworksPy.dll"
STEAMWORKS_COMPILE_CMD_WIN32 = [
"cmd.exe",
"/k",
'C:\\"Program Files (x86)"\\"Microsoft Visual Studio"\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat',
"&",
"cl",
"/D_USRDLL",
"/D_WINDLL",
"SteamworksPy.cpp",
"steam_api.lib",
"/link",
"/DLL",
f"/OUT:{STEAMWORKSPY_BIN_WIN32}",
"&",
"exit",
]
STEAMWORKSPY_BIN_WIN64 = "SteamworksPy64.dll"
STEAMWORKS_COMPILE_CMD_WIN64 = [
"cmd.exe",
"/k",
'C:\\"Program Files (x86)"\\"Microsoft Visual Studio"\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat',
"&",
"cl",
"/D_USRDLL",
"/D_WINDLL",
"SteamworksPy.cpp",
"steam_api64.lib",
"/link",
"/DLL",
f"/OUT:{STEAMWORKSPY_BIN_WIN64}",
"&",
"exit",
]
# SOURCE: "https://partner.steamgames.com/downloads/steamworks_sdk_*.zip"
STEAMWORKS_SDK_URL = "https://github.com/oceancabbage/RimSort/raw/steamworks-sdk/steamworks_sdk_155.zip"
SUBMODULE_UPDATE_INIT_CMD = ["git", "submodule", "update", "--init", "--recursive"]
STEAMWORKS_PY_PATH = os.path.join(_CWD, "submodules", "SteamworksPy", "library")
STEAMWORKS_SDK_PATH = os.path.join(STEAMWORKS_PY_PATH, "sdk")
STEAMWORKS_SDK_HEADER_PATH = os.path.join(STEAMWORKS_SDK_PATH, "public", "steam")
STEAMWORKS_SDK_HEADER_DEST_PATH = os.path.join(STEAMWORKS_PY_PATH, "sdk", "steam")
STEAMWORKS_SDK_REDIST_BIN_PATH = os.path.join(
STEAMWORKS_SDK_PATH, "redistributable_bin"
)
STEAMWORKS_SDK_APILIB_PATH = os.path.join(
STEAMWORKS_SDK_REDIST_BIN_PATH, "steam_api.lib"
)
STEAMWORKS_SDK_APILIB_DEST_PATH = os.path.join(STEAMWORKS_PY_PATH, "steam_api.lib")
STEAMWORKS_SDK_APILIB_FIN_PATH = os.path.join(_CWD, "libs", "steam_api.lib")
print(f"Running on {_SYSTEM} {_ARCH} {_PROCESSOR}...")
if _SYSTEM == "Darwin":
if _ARCH == "64bit":
STEAMWORKS_SDK_LIBSTEAM_PATH = os.path.join(
STEAMWORKS_SDK_REDIST_BIN_PATH, "osx", "libsteam_api.dylib"
)
else:
print(f"Unsupported ARCH: {_SYSTEM} {_ARCH} with {_PROCESSOR}")
sys.exit()
STEAMWORKS_SDK_LIBSTEAM_DEST_PATH = os.path.join(
STEAMWORKS_PY_PATH, "libsteam_api.dylib"
)
STEAMWORKS_SDK_LIBSTEAM_FIN_PATH = os.path.join(
_CWD, "libs", "libsteam_api.dylib"
)
COMPILE_CMD = DARWIN_COMPILE_CMD
STEAMWORKSPY_BIN_PATH = os.path.join(
STEAMWORKS_PY_PATH, STEAMWORKSPY_BIN_DARWIN
)
STEAMWORKSPY_BIN_FIN_PATH = os.path.join(_CWD, "libs", STEAMWORKSPY_BIN_DARWIN)
elif _SYSTEM == "Linux":
if _ARCH == "32bit":
STEAMWORKS_SDK_LIBSTEAM_PATH = os.path.join(
STEAMWORKS_SDK_REDIST_BIN_PATH, "linux32", "libsteam_api.so"
)
elif _ARCH == "64bit":
STEAMWORKS_SDK_LIBSTEAM_PATH = os.path.join(
STEAMWORKS_SDK_REDIST_BIN_PATH, "linux64", "libsteam_api.so"
)
else:
print(f"Unsupported ARCH: {_SYSTEM} {_ARCH} with {_PROCESSOR}")
sys.exit()
STEAMWORKS_SDK_LIBSTEAM_DEST_PATH = os.path.join(
STEAMWORKS_PY_PATH, "libsteam_api.so"
)
STEAMWORKS_SDK_LIBSTEAM_FIN_PATH = os.path.join(_CWD, "libs", "libsteam_api.so")
COMPILE_CMD = LINUX_COMPILE_CMD
STEAMWORKSPY_BIN_PATH = os.path.join(STEAMWORKS_PY_PATH, STEAMWORKSPY_BIN_LINUX)
STEAMWORKSPY_BIN_FIN_PATH = os.path.join(_CWD, "libs", STEAMWORKSPY_BIN_LINUX)
elif _SYSTEM == "Windows":
if _ARCH == "32bit":
STEAMWORKS_SDK_LIBSTEAM_PATH = os.path.join(
STEAMWORKS_SDK_REDIST_BIN_PATH, "steam_api.dll"
)
STEAMWORKS_SDK_APILIB_PATH = os.path.join(
STEAMWORKS_SDK_REDIST_BIN_PATH, "steam_api.lib"
)
STEAMWORKS_SDK_LIBSTEAM_DEST_PATH = os.path.join(
STEAMWORKS_PY_PATH, "steam_api.dll"
)
STEAMWORKS_SDK_LIBSTEAM_FIN_PATH = os.path.join(
_CWD, "libs", "steam_api.dll"
)
STEAMWORKS_SDK_APILIB_DEST_PATH = os.path.join(
STEAMWORKS_PY_PATH, "steam_api.lib"
)
STEAMWORKS_SDK_APILIB_FIN_PATH = os.path.join(_CWD, "libs", "steam_api.lib")
COMPILE_CMD = STEAMWORKS_COMPILE_CMD_WIN32
STEAMWORKSPY_BIN_PATH = os.path.join(
STEAMWORKS_PY_PATH, STEAMWORKSPY_BIN_WIN32
)
STEAMWORKSPY_BIN_FIN_PATH = os.path.join(
_CWD, "libs", STEAMWORKSPY_BIN_WIN32
)
elif _ARCH == "64bit":
STEAMWORKS_SDK_LIBSTEAM_PATH = os.path.join(
STEAMWORKS_SDK_REDIST_BIN_PATH, "win64", "steam_api64.dll"
)
STEAMWORKS_SDK_APILIB_PATH = os.path.join(
STEAMWORKS_SDK_REDIST_BIN_PATH, "win64", "steam_api64.lib"
)
STEAMWORKS_SDK_LIBSTEAM_DEST_PATH = os.path.join(
STEAMWORKS_PY_PATH, "steam_api64.dll"
)
STEAMWORKS_SDK_LIBSTEAM_FIN_PATH = os.path.join(
_CWD, "libs", "steam_api64.dll"
)
STEAMWORKS_SDK_APILIB_DEST_PATH = os.path.join(
STEAMWORKS_PY_PATH, "steam_api64.lib"
)
STEAMWORKS_SDK_APILIB_FIN_PATH = os.path.join(
_CWD, "libs", "steam_api64.lib"
)
COMPILE_CMD = STEAMWORKS_COMPILE_CMD_WIN64
STEAMWORKSPY_BIN_PATH = os.path.join(
STEAMWORKS_PY_PATH, STEAMWORKSPY_BIN_WIN64
)
STEAMWORKSPY_BIN_FIN_PATH = os.path.join(_CWD, STEAMWORKSPY_BIN_WIN64)
else:
print(f"Unsupported SYSTEM: {_SYSTEM} {_ARCH} with {_PROCESSOR}")
sys.exit()
else:
print(f"Unsupported SYSTEM: {_SYSTEM} {_ARCH} with {_PROCESSOR}")
sys.exit()
# Do stuff!
print("Getting SteamworksPy requirements...")
print(f"Entering directory {os.path.split(STEAMWORKS_PY_PATH)[0]}")
os.chdir(os.path.split(STEAMWORKS_PY_PATH)[0])
_execute(GET_REQ_CMD)
print(f"Returning to cwd... {_CWD}")
os.chdir(_CWD)
print("Getting Steamworks SDK...")
if os.path.exists(STEAMWORKS_SDK_PATH):
print("Existing SDK found. Removing, and re-downloading fresh copy.")
shutil.rmtree(STEAMWORKS_SDK_PATH)
with ZipFile(BytesIO(requests.get(STEAMWORKS_SDK_URL).content)) as zipobj:
zipobj.extractall(STEAMWORKS_PY_PATH)
print(f"Getting Steam headers...")
shutil.copytree(STEAMWORKS_SDK_HEADER_PATH, STEAMWORKS_SDK_HEADER_DEST_PATH)
print("Getting Steam API lib file...")
if os.path.exists(STEAMWORKS_SDK_APILIB_DEST_PATH):
os.remove(STEAMWORKS_SDK_APILIB_DEST_PATH)
shutil.copyfile(STEAMWORKS_SDK_APILIB_PATH, STEAMWORKS_SDK_APILIB_DEST_PATH)
print(f"Getting libsteam_api for {_SYSTEM} {_ARCH}...")
if os.path.exists(STEAMWORKS_SDK_LIBSTEAM_DEST_PATH):
os.remove(STEAMWORKS_SDK_LIBSTEAM_DEST_PATH)
shutil.copyfile(STEAMWORKS_SDK_LIBSTEAM_PATH, STEAMWORKS_SDK_LIBSTEAM_DEST_PATH)
print(f"Building SteamworksPy for {_SYSTEM} {_ARCH}...")
print(f"Entering directory {STEAMWORKS_PY_PATH}")
os.chdir(STEAMWORKS_PY_PATH)
# Compile SteamworksPy
_execute(COMPILE_CMD)
print(f"Returning to cwd... {_CWD}")
os.chdir(_CWD)
# APILIB
print(
f"Copying file {STEAMWORKS_SDK_APILIB_DEST_PATH} to: {STEAMWORKS_SDK_APILIB_FIN_PATH}"
)
shutil.copyfile(STEAMWORKS_SDK_APILIB_DEST_PATH, STEAMWORKS_SDK_APILIB_FIN_PATH)
# LIBSTEAM
print(
f"Copying file {STEAMWORKS_SDK_LIBSTEAM_DEST_PATH} to: {STEAMWORKS_SDK_LIBSTEAM_FIN_PATH}"
)
shutil.copyfile(STEAMWORKS_SDK_LIBSTEAM_DEST_PATH, STEAMWORKS_SDK_LIBSTEAM_FIN_PATH)
# STEAMWORKSPY
print(f"Copying file {STEAMWORKSPY_BIN_PATH} to: {STEAMWORKSPY_BIN_FIN_PATH}")
shutil.copyfile(STEAMWORKSPY_BIN_PATH, STEAMWORKSPY_BIN_FIN_PATH)
if _SYSTEM == "Darwin":
print(
f"Copying file {STEAMWORKSPY_BIN_FIN_PATH} to: {STEAMWORKSPY_BIN_DARWIN_LINK_PATH}"
)
shutil.copyfile(STEAMWORKSPY_BIN_FIN_PATH, STEAMWORKSPY_BIN_DARWIN_LINK_PATH)
elif _SYSTEM == "Linux":
print(
f"Copying file {STEAMWORKSPY_BIN_FIN_PATH} to: {STEAMWORKSPY_BIN_LINUX_LINK_PATH}"
)
shutil.copyfile(STEAMWORKSPY_BIN_FIN_PATH, STEAMWORKSPY_BIN_LINUX_LINK_PATH)
def copy_swp_libs() -> None:
# Copy libs
if _SYSTEM != "Windows":
if _SYSTEM == "Darwin":
STEAMWORKSPY_BUILT_LIB = os.path.join(
_CWD, "libs", f"SteamworksPy_{_PROCESSOR}.dylib"
)
STEAMWORKSPY_LIB_FIN = os.path.join(_CWD, "libs", "SteamworksPy.dylib")
elif _SYSTEM == "Linux":
STEAMWORKSPY_BUILT_LIB = os.path.join(
_CWD, "libs", f"SteamworksPy_{_PROCESSOR}.so"
)
STEAMWORKSPY_LIB_FIN = os.path.join(_CWD, "libs", "SteamworksPy.so")
print("Copying libs for non-Windows platform")
shutil.copyfile(STEAMWORKSPY_BUILT_LIB, STEAMWORKSPY_LIB_FIN)
def get_latest_todds_release() -> None:
# Parse latest release
headers = None
if "GITHUB_TOKEN" in os.environ:
headers = {"Authorization": f"token {os.environ['GITHUB_TOKEN']}"}
raw = requests.get(
"https://github.com/gitapi/repos/joseasoler/todds/releases/latest", headers=headers
)
json_response = raw.json()
tag_name = json_response["tag_name"]
todds_path = os.path.join(_CWD, "todds")
todds_executable_name = "todds"
print(f"Latest release: {tag_name}\n")
# Setup environment
if _SYSTEM == "Darwin":
print(f"Darwin/MacOS system detected with a {_ARCH} {_PROCESSOR} CPU...")
target_archive = f"todds_{_SYSTEM}_{_PROCESSOR}_{tag_name}.zip"
elif _SYSTEM == "Linux":
print(f"Linux system detected with a {_ARCH} {_PROCESSOR} CPU...")
target_archive = f"todds_{_SYSTEM}_{_PROCESSOR}_{tag_name}.zip"
elif _SYSTEM == "Windows":
print(f"Windows system detected with a {_ARCH} {_PROCESSOR} CPU...")
target_archive = f"todds_{_SYSTEM}_{tag_name}.zip"
todds_executable_name = "todds.exe"
else:
print(f"Unsupported system {_SYSTEM} {_ARCH} {_PROCESSOR}")
print(
"Skipping todds download. The resultant RimSort build will not include todds!"
)
return
# Try to find a valid release
for asset in json_response["assets"]:
if asset["name"] == target_archive:
browser_download_url = asset["browser_download_url"]
if not "browser_download_url" in locals():
print(
f"Failed to find valid joseasoler/todds release for {_SYSTEM} {_ARCH} {_PROCESSOR}"
)
return
# Try to download & extract todds release from browser_download_url
target_archive_extracted = target_archive.replace(".zip", "")
try:
print(f"Downloading & extracting todds release from: {browser_download_url}")
with ZipFile(BytesIO(requests.get(browser_download_url).content)) as zipobj:
zipobj.extractall(todds_path)
# Set executable permissions as ZipFile does not preserve this in the zip archive
todds_executable_path = os.path.join(todds_path, todds_executable_name)
if os.path.exists(todds_executable_path):
original_stat = os.stat(todds_executable_path)
os.chmod(todds_executable_path, original_stat.st_mode | S_IEXEC)
except:
print(f"Failed to download: {browser_download_url}")
print(
"Did the file/url change?\nDoes your environment have access to the Internet?"
)
def freeze_application() -> None:
# Nuitka
print(f"Running on {_SYSTEM} {_ARCH} {_PROCESSOR}...")
# Set the PYTHONPATH environment variable to include your submodules directory
env = os.environ.copy()
env["PYTHONPATH"] = (
str((Path(_CWD) / "submodules" / "SteamworksPy"))
+ os.pathsep
+ env.get("PYTHONPATH", "")
)
_execute(_NUITKA_CMD, env=env)
def _execute(cmd: list[str], env=None) -> None:
print(f"\nExecuting command: {cmd}\n")
p = subprocess.Popen(cmd, env=env)
p.wait()
if __name__ == "__main__":
"""
Do stuff!
"""
# RimSort dependencies
print("Getting RimSort dependencies...")
get_rimsort_deps()
# Build SteamworksPy
# print("Building SteamworksPy library...")
# build_steamworkspy()
# Copy SteamworksPy prebuilt libs
print("Copying SteamworksPy libs for release...")
copy_swp_libs()
# Grab latest todds release
print("Grabbing latest todds release...")
get_latest_todds_release()
# Build Nuitka distributable binary
print("Building RimSort application with Nuitka...")
freeze_application()