Skip to content

Conversation

@OtabekRintaro
Copy link
Contributor

This PR contains a tool for packaging MacOS build for FastSurfer and modified workflow to automate packaging on FastSurfer release.

build_release_package.sh script packages FastSurfer along with minimised freesurfer code.
Modified deploy.yml workflow builds and uploads packaged FastSurfers to artifacts on FastSurfer release.

  • Folder structure change: Docker, Singularity and macos_build in the tools folder
  • Static files used for installer customisation added into doc folder

@m-reuter
Copy link
Member

python3.10 is hardcoded in a few places. We should try to make it easier to upgrade to a new python version in the future, which can happen pretty often. Maybe it is even possible to replace with python3 ?

@m-reuter m-reuter marked this pull request as draft October 15, 2025 14:48
@OtabekRintaro OtabekRintaro force-pushed the feature/release-packaging branch from 2f413e4 to 051c9ff Compare October 15, 2025 15:53
Copy link
Member

@dkuegler dkuegler left a comment

Choose a reason for hiding this comment

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

Nice work, see comments.

run: |
mkdir artifact
mv tools/macos_build/installer/* artifact/
- uses: actions/upload-artifact@v4
Copy link
Member

Choose a reason for hiding this comment

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

Instead of uploading the file as an artifact, upload it as a release asset with this action https://github.com/softprops/action-gh-release .
See also https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28

ARTIFACT_NAME: FastSurfer
VERSION: 242
FREESURFER_URL: https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.4.1/freesurfer-macOS-darwin_x86_64-7.4.1.tar.gz
UPLOAD_ARTIFACT: true
Copy link
Member

Choose a reason for hiding this comment

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

not artifact but release asset

Comment on lines 14 to 17
if ! grep -q "export PATH=\"$(brew --prefix)/opt/grep/libexec/gnubin:\$PATH\"" ~/.bash_profile; then
echo "export PATH=\"$(brew --prefix)/opt/grep/libexec/gnubin:\$PATH\"" >> ~/.bash_profile;
echo "GNU grep has been adde to path"
fi
Copy link
Member

Choose a reason for hiding this comment

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

Make sure run_fastsurfer.sh is also in PATH!

@dkuegler
Copy link
Member

We will also need to update the install instructions for macOS in doc/overview/INSTALL.md.

@OtabekRintaro OtabekRintaro force-pushed the feature/release-packaging branch from 85f3e65 to d06303d Compare October 22, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants