Skip to content

Commit

Permalink
prebuild handling of windows shell
Browse files Browse the repository at this point in the history
  • Loading branch information
mquinnfd committed Jul 19, 2024
1 parent 77d26f3 commit acf9938
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pre_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ def build() -> None:
)
exit(1)
print("Building front end...")
use_shell = os.name == "nt"
subprocess.run(["yarn", "webui:install"], shell=use_shell)
subprocess.run(["yarn", "webui:build"], shell=use_shell)

if os.name == "nt":
subprocess.run(" ".join(["yarn", "webui:install"]), shell=True)
subprocess.run(" ".join(["yarn", "webui:build"]), shell=True)
else:
subprocess.run(["yarn", "webui:install"])
subprocess.run(["yarn", "webui:build"])

if __name__ == "__main__":
build()

0 comments on commit acf9938

Please sign in to comment.