Skip to content

Commit

Permalink
CI: trial and error on macos build, no local version
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Nov 6, 2024
1 parent 5f2d77e commit 8810aa1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-on-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" \
Expand All @@ -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."
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8810aa1

Please sign in to comment.