mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Add Flatpak build
This commit is contained in:
1 parent
bdbf0ab789
commit
28bdccd322
6 files changed
+182
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python
|
||||
import argparse
|
||||
import subprocess
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
for directory in ["data", "saves", "mods"]:
|
||||
abs_dir = os.path.join(os.environ["XDG_DATA_HOME"], directory
|
||||
if not os.path.isdir(abs_dir):
|
||||
os.makedirs(abs_dir)
|
||||
|
||||
xdg_data_home = os.environ["XDG_XATA_HOME"]
|
||||
default_args = ["--basedir", f"{xdg_data_home}/data", "--savedir", f"{xdg_data_home}/saves"]
|
||||
|
||||
subprocess.run(["pd"] + default_args)
|
||||
Reference in new issue
Block a user