mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2025-02-23 10:25:05 +00:00
25 lines
631 B
Python
25 lines
631 B
Python
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
def build_sunvalley():
|
|
buildscript = Path.cwd() / 'build.ps1'
|
|
subprocess.run(['powershell', str(buildscript), 'sv'])
|
|
|
|
|
|
def build_forest():
|
|
rewriter = Path.cwd() / 'tools' / 'rewriter.py'
|
|
subprocess.run([sys.executable, str(rewriter), '--rewrite'])
|
|
|
|
buildscript = Path.cwd() / 'build.ps1'
|
|
for theme in ('light', 'dark'):
|
|
subprocess.run(['powershell', str(buildscript), 'fst', theme])
|
|
|
|
subprocess.run([sys.executable, str(rewriter), '--restore'])
|
|
|
|
|
|
def build_all():
|
|
steps = (build_sunvalley, build_forest)
|
|
[step() for step in steps]
|