Skip to content

Conversation

@ann0see
Copy link
Member

@ann0see ann0see commented Aug 3, 2025

Short description of changes
Moves away from brew to now use native github downloads and installs from create-dmg. Also adds (yet untested) auto updates.

Fixes: #3152
CHANGELOG: SKIP
Context: Fixes an issue?

Does this change need documentation? What needs to be documented and how?

No

Status of this Pull Request

Ready for review

What is missing until this pull request can be merged?

Test if caching works It does. But Qt caching fails - but that's unchanged.

Checklist

AUTOBUILD: Please build all targets

@ann0see ann0see added this to the Release 3.12.0 milestone Aug 3, 2025
@ann0see ann0see added this to Tracking Aug 3, 2025
@ann0see ann0see moved this from Triage to Waiting on Team in Tracking Aug 3, 2025
@github-project-automation github-project-automation bot moved this to Triage in Tracking Aug 3, 2025
@ann0see ann0see requested review from pljones and softins August 3, 2025 11:40
- name: create-dmg
changelog_name: create-dmg (macOS)
get_upstream_version: GH_REPO=create-dmg/create-dmg gh release view --json tagName --jq .tagName | sed -re 's/^v//'
local_version_regex: (.*CREATEDMG_?VERSION_?TAG\s*=\s*"?)([0-9.]*)("?.*)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
local_version_regex: (.*CREATEDMG_?VERSION_?TAG\s*=\s*"?)([0-9.]*)("?.*)
local_version_regex: (.*CREATEDMG_?VERSION_?TAG\s*=\s*"?)(v[0-9.]*)("?.*)

(not sure)

Copy link
Collaborator

@pljones pljones Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe v? then?

Where is it used?

fi
brew install "${pkg_version}--"*
pushd "${dependency_root_folder}"
sudo make install
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes the function somewhat not portable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this code doesn't need to be portable to a non-Mac. And I assume all Macs will have sudo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. All Macs should have sudo. I just want to make clear that dependencies which don't need make install would need a different function

@ann0see ann0see changed the title Re-Add pinning to create-dmg Re add pinning to create-dmg Aug 3, 2025
@ann0see ann0see marked this pull request as ready for review August 3, 2025 13:00
Copy link
Member

@softins softins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with this. I made a branch of my own from it with added logging and ran the autobuild twice. The first time it successfully fetched create-dmg and built it. The second time it picked up the cached create-dmg. I then installed the built artifact and it ran ok.

@ann0see ann0see force-pushed the autobuild/reAddCreateDmgPin branch from 51d29ab to 157cc00 Compare August 10, 2025 07:55
@ann0see ann0see requested a review from pljones August 10, 2025 07:55
# FIXME: Currently caching is disabled due to an error in the extract step
brew install create-dmg
# Install create-dmg
github_install_dependency "create-dmg/create-dmg" "v${CREATEDMG_VERSION}"
Copy link
Member Author

@ann0see ann0see Aug 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this to use the version instead of the tag here...

@pljones pljones merged commit 19a0498 into jamulussoftware:main Aug 10, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from Waiting on Team to Done in Tracking Aug 10, 2025
@ann0see ann0see deleted the autobuild/reAddCreateDmgPin branch August 10, 2025 08:01
@pljones pljones added the tooling Changes to the automated build system label Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling Changes to the automated build system

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Re add caching and pinning to create dmg

3 participants