Skip to content

Commit

Permalink
CAP: yakerize ci and publishing working
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Sep 19, 2024
1 parent ecadd69 commit 5bd5cf5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions invokes/yakerize.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,17 @@ def main(
if not os.path.isfile(yak_exe_path):
print(f"Yak.exe not found at {yak_exe_path}.")
return False

path_current : str = os.getcwd()
os.chdir(build_dir)
os.system("cd")

try:
os.system(f"{yak_exe_path} build")
os.system(f"{yak_exe_path} build --platform win")
except Exception as e:
print(f"Failed to build the yak package: {e}")
return False

if not any([f.endswith(".yak") for f in os.listdir(build_dir)]):
print("No .yak file was created in the build directory.")
return False

os.chdir(path_current)

return True
Expand Down

0 comments on commit 5bd5cf5

Please sign in to comment.