chore: rebuild all scss files before install
Signed-off-by: Pranav <npv12@iitbbs.ac.in>
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -20,6 +20,8 @@ jobs:
|
|||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -r requirements.txt
|
run: pip install -r requirements.txt
|
||||||
|
- name: Install colloid specific deps
|
||||||
|
run: sudo apt-get install sassc
|
||||||
- name: Generate themes
|
- name: Generate themes
|
||||||
run: python ./install.py all -a all --zip
|
run: python ./install.py all -a all --zip
|
||||||
- name: Add zips to release
|
- name: Add zips to release
|
||||||
|
@@ -20,7 +20,6 @@ def create_theme(types: List[str], accents: List[str], dest: str = tmp_dir, link
|
|||||||
for type in types:
|
for type in types:
|
||||||
for accent in accents:
|
for accent in accents:
|
||||||
# Recolor colloid wrt our selection like mocha. latte
|
# Recolor colloid wrt our selection like mocha. latte
|
||||||
print(type, accent)
|
|
||||||
recolor(ctp_colors[type], accent)
|
recolor(ctp_colors[type], accent)
|
||||||
theme_style: str = "light" if type == "latte" else "dark"
|
theme_style: str = "light" if type == "latte" else "dark"
|
||||||
install_cmd: str = f"./install.sh -c {theme_style} -s {size} -n {name} -d {dest} -t {def_color_map[accent]}"
|
install_cmd: str = f"./install.sh -c {theme_style} -s {size} -n {name} -d {dest} -t {def_color_map[accent]}"
|
||||||
@@ -28,10 +27,9 @@ def create_theme(types: List[str], accents: List[str], dest: str = tmp_dir, link
|
|||||||
install_cmd += f" --tweaks {' '.join([tweak for tweak in tweaks])}"
|
install_cmd += f" --tweaks {' '.join([tweak for tweak in tweaks])}"
|
||||||
|
|
||||||
os.chdir(work_dir)
|
os.chdir(work_dir)
|
||||||
# Install the theme globally for you
|
subprocess.call("./build.sh", shell=True) # Rebuild all scss
|
||||||
subprocess.call(install_cmd, shell=True)
|
subprocess.call(install_cmd, shell=True) # Install the theme globally for you
|
||||||
# reset colloid repo to original state
|
subprocess.call("git reset --hard HEAD", shell=True) # reset colloid repo to original state
|
||||||
subprocess.call("git reset --hard HEAD", shell=True)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Rename colloid generated files as per catppuccin
|
# Rename colloid generated files as per catppuccin
|
||||||
|
Reference in New Issue
Block a user