Skip to content

Fix thumbnails for macOS Sequoia (fix #5009)#5314

Merged
dacap merged 1 commit into
aseprite:macos-thumbnailsfrom
Gasparoken:thumbnails-macos-update-3
Oct 17, 2025
Merged

Fix thumbnails for macOS Sequoia (fix #5009)#5314
dacap merged 1 commit into
aseprite:macos-thumbnailsfrom
Gasparoken:thumbnails-macos-update-3

Conversation

@Gasparoken

@Gasparoken Gasparoken commented Jul 31, 2025

Copy link
Copy Markdown
Member

Last minimalist macos 10.15 thumbnail integretaion.

This PR includes the fix for image alpha premultiplication. Additionally, AsepriteThumbnailer.appex is now a package without dependency of aseprite.app

fix #5009

This PR replaces #5293

@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

@dacap dacap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great! 👍 Some minor changes can be made to create bin/Aseprite.app properly (instead of bin/aseprite.app) and see if the .appex can go directly to the PlugIns directory.

Comment thread src/desktop/osx/CMakeLists.txt
Comment thread src/desktop/osx/CMakeLists.txt
main.mm
set(extension_target AsepriteThumbnailer)

add_executable(${extension_target} MACOSX_BUNDLE

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we just output the .appex inside the bin/Aseprite.app/Contents/PlugIns directory? Not sure if it does make sense (or if it simplify the build scripts later).

Comment thread src/CMakeLists.txt
if(ENABLE_ASEPRITE_EXE)
set(main_target aseprite)
if(APPLE)
set(DATA_OUTPUT_DIR ${CMAKE_BINARY_DIR}/bin/${main_target}.app/Contents/Resources/data)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is an issue here where the output directory should be Aseprite.app (not aseprite.app):

Suggested change
set(DATA_OUTPUT_DIR ${CMAKE_BINARY_DIR}/bin/${main_target}.app/Contents/Resources/data)
set(DATA_OUTPUT_DIR ${CMAKE_BINARY_DIR}/bin/Aseprite.app/Contents/Resources/data)


add_library(AsepriteThumbnailer SHARED
main.mm
set(extension_target AsepriteThumbnailer)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Probably we keep the AsepriteThumbnailer name (without incorporating the extension_target variable).

Comment thread src/CMakeLists.txt
set(DATA_OUTPUT_DIR ${CMAKE_BINARY_DIR}/bin/data)

if(ENABLE_ASEPRITE_EXE)
set(main_target aseprite)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same here, probably we can just remove the main_target var (introduced in 11e4243 but not sure why, probably just for "searchability" purposes).

@dacap dacap assigned Gasparoken and unassigned dacap Aug 5, 2025
@dacap

dacap commented Oct 15, 2025

Copy link
Copy Markdown
Member

@Gasparoken I can take this PR and finish the distribution process if you cannot continue with this one.

@Gasparoken

Copy link
Copy Markdown
Member Author

@dacap, yes of course. Go ahead. Thank you!

@Gasparoken Gasparoken assigned dacap and unassigned Gasparoken Oct 15, 2025
@dacap dacap changed the base branch from main to macos-thumbnails October 17, 2025 19:05
@dacap dacap merged commit 22290ab into aseprite:macos-thumbnails Oct 17, 2025
9 of 12 checks passed
dacap added a commit that referenced this pull request Oct 17, 2025
…mbnailing framework

QUICKLOOK_LIBRARY might be cached to QuickLook.framework giving some
compilation errors:

#5314 (comment)
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.

Fix thumbnails for macOS Sequoia

3 participants