about summary refs log tree commit diff
path: root/pkgs/data/themes/catppuccin-gtk/colloid-src-git-reset.patch
blob: 7ee1f4bd9b6f70517abc35c7f3acf8bc171a5636 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/scripts/create_theme.py b/scripts/create_theme.py
index 074dc43..7e7a8eb 100644
--- a/scripts/create_theme.py
+++ b/scripts/create_theme.py
@@ -34,7 +34,11 @@ def create_theme(types: List[str], accents: List[str], dest: str, link: bool = F
             os.chdir(work_dir)
             subprocess.call("./build.sh", shell=True) # Rebuild all scss
             subprocess.call(install_cmd, shell=True) # Install the theme globally for you
-            subprocess.call("git reset --hard HEAD", shell=True)  # reset colloid repo to original state
+            # subprocess.call("git reset --hard HEAD", shell=True)  # reset colloid repo to original state
+            # recreate git reset
+            os.chdir(repo_dir)
+            shutil.rmtree("colloid")
+            shutil.copytree("colloid-base", "colloid")
 
             try:
                 # Rename colloid generated files as per catppuccin