From 8810aa1762c36db115e25cb2f7dd8052f22b96c1 Mon Sep 17 00:00:00 2001 From: Johannes Laurin Hoermann Date: Wed, 6 Nov 2024 19:47:55 +0100 Subject: [PATCH] CI: trial and error on macos build, no local version --- .github/workflows/build-on-macos.yml | 6 +++++- pyproject.toml | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-on-macos.yml b/.github/workflows/build-on-macos.yml index d137562..ef26723 100644 --- a/.github/workflows/build-on-macos.yml +++ b/.github/workflows/build-on-macos.yml @@ -108,6 +108,8 @@ jobs: max_retries=3 retry_count=0 + hdiutil info + echo "Killing XProtect if running..." sudo pkill -9 XProtect >/dev/null || true @@ -118,7 +120,7 @@ jobs: while (( retry_count < max_retries )); do echo "Attempt $(($retry_count + 1)) to create dmg..." - sudo create-dmg \ + create-dmg \ --volname "dtool-lookup-gui" \ --eula "LICENSE.txt" \ --volicon "data/icons/dtool_logo.icns" \ @@ -143,6 +145,8 @@ jobs: sleep 10 fi done + + hdiutil info if (( retry_count == max_retries )); then echo "Failed to create dmg after $max_retries attempts." diff --git a/pyproject.toml b/pyproject.toml index c41dbe8..3f709ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,4 +58,6 @@ include = ["dtool_lookup_gui*"] namespaces = true [tool.setuptools_scm] -version_file = "dtool_lookup_gui/version.py" +version_scheme = "guess-next-dev" +local_scheme = "no-local-version" +write_to = "dtool_lookup_gui/version.py"