Repository navigation
Expand file tree
/
Copy pathbuild.py
More file actions
51 lines (50 loc) · 1.94 KB
/
Copy pathbuild.py
File metadata and controls
51 lines (50 loc) · 1.94 KB
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
#! /usr/bin/env python3
import os, shutil
print("-=Splash theme builder=-")
print("These are the currently available themes:")
print(''' 1 - Archlinux
2 - Debian
3 - Kubuntu
4 - Ubuntu
5 - Archie''')
while True:
selection = input("Please select a number from above [1-5]: ")
if not selection.isdecimal():
print("Error, try again")
elif int(selection) >= 1 and int(selection) <= 5:
if not os.path.exists("build"): os.mkdir("build")
name: str = ""
match int(selection):
case 1:
name = "org.gearfox98.ArchieArch"
if os.path.exists(f"build/{name}"):
print(f"Error: build/{name} already exists")
break
shutil.copytree("arch", f"build/{name}")
case 2:
name = "org.gearfox98.ArchieDebian"
if os.path.exists(f"build/{name}"):
print(f"Error: build/{name} already exists")
break
shutil.copytree("debian", f"build/{name}")
case 3:
name = "org.gearfox98.ArchieKubuntu"
if os.path.exists(f"build/{name}"):
print(f"Error: build/{name} already exists")
break
shutil.copytree("kubuntu", f"build/{name}")
case 4:
name = "org.gearfox98.ArchieUbuntu"
if os.path.exists(f"build/{name}"):
print(f"Error: build/{name} already exists")
break
shutil.copytree("ubuntu", f"build/{name}")
case 5:
name = "org.gearfox98.Archie"
if os.path.exists(f"build/{name}"):
print(f"Error: build/{name} already exists")
break
shutil.copytree("archie", f"build/{name}")
shutil.copytree("base", f"build/{name}", dirs_exist_ok=True)
break
print("Done")