Skip to content

Commit

Permalink
ref #41 macos📦 dmg 路径错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zy7y committed Apr 29, 2024
1 parent fc096a6 commit 64f5fb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def get_pyinstaller_add_data_by_package(name):
# 如果是macos,则压缩打包后的目录
if platform.system() == "Darwin":
subprocess.call(["npm", "i", "-g", "create-dmg"])
subprocess.call(["create-dmg", "client.dmg", "dist/client.app"], cwd="dist")
subprocess.call(["rm", "-rf", "dist/client.app"])
subprocess.call(["rm", "-rf", "dist/client"])
subprocess.call(["create-dmg", "client.app"], cwd="dist")
subprocess.call(["rm", "-rf", "client.app"])
subprocess.call(["rm", "-rf", "client"])

if os.path.isfile(CLIENT_PY):
os.remove(CLIENT_PY)

0 comments on commit 64f5fb1

Please sign in to comment.