2023-08-27 02:41:07 +01:00
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
def build_sunvalley():
|
2025-02-07 14:53:07 +00:00
|
|
|
buildscript = Path.cwd() / 'build.ps1'
|
|
|
|
subprocess.run(['powershell', str(buildscript), 'sv'])
|
2023-08-27 02:41:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
def build_forest():
|
2025-02-07 14:53:07 +00:00
|
|
|
rewriter = Path.cwd() / 'tools' / 'rewriter.py'
|
|
|
|
subprocess.run([sys.executable, str(rewriter), '--rewrite'])
|
2023-08-27 02:41:07 +01:00
|
|
|
|
2025-02-07 14:53:07 +00:00
|
|
|
buildscript = Path.cwd() / 'build.ps1'
|
|
|
|
for theme in ('light', 'dark'):
|
|
|
|
subprocess.run(['powershell', str(buildscript), 'fst', theme])
|
2023-08-27 02:41:07 +01:00
|
|
|
|
2025-02-07 14:53:07 +00:00
|
|
|
subprocess.run([sys.executable, str(rewriter), '--restore'])
|
2023-08-27 02:41:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
def build_all():
|
|
|
|
steps = (build_sunvalley, build_forest)
|
|
|
|
[step() for step in steps]
|