Skip to content

Commit

Permalink
#1008 修复choco推送命令错误
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmoyue committed Jan 30, 2025
1 parent 791681b commit 3811a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/packChoco.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def process_architecture(arch, version, github_token, chocotoken):

# 执行 choco push 命令
try:
subprocess.run(["choco", "push", package_path, "--source", "https://push.chocolatey.org/", "--api-key", chocotoken], check=True)
subprocess.run(["choco", "push", "--source", "https://push.chocolatey.org/", "--api-key", chocotoken], cwd=pack_dir, check=True)
except subprocess.CalledProcessError as e:
print(f"Failed to push package for architecture {arch}. Error: {e}")

Expand Down

0 comments on commit 3811a97

Please sign in to comment.