Skip to content

Allow the CliProcessor to attempt to install extensions (fix #5744)#5748

Merged
dacap merged 1 commit into
aseprite:betafrom
ckaiser:cli-extensions
Apr 20, 2026
Merged

Allow the CliProcessor to attempt to install extensions (fix #5744)#5748
dacap merged 1 commit into
aseprite:betafrom
ckaiser:cli-extensions

Conversation

@ckaiser

@ckaiser ckaiser commented Apr 14, 2026

Copy link
Copy Markdown
Member

Fixes #5744, also useful for portable installs so the user can just drag and drop an extension file onto the executable.

@ckaiser ckaiser requested a review from dacap as a code owner April 14, 2026 13:31
@aseprite-bot

Copy link
Copy Markdown
Collaborator

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

@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 good so far, just a minor change.

As a side note, we could probably include this fix directly to main branch.

Comment thread src/app/cli/cli_processor.cpp Outdated
if ( // Check that the filename wasn't used loading a sequence
// of images as one sprite
if (ctx->isUIAvailable() &&
base::get_file_extension(cof.filename) == "aseprite-extension") {

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 could compare with the lower case version of the extension (base::string_to_lower(base::get_file_extension(cof.filename))).

@ckaiser

ckaiser commented Apr 18, 2026

Copy link
Copy Markdown
Member Author

Added the lowercase call, I didn't include it on the main branch because Params doesn't have the initializer_list there so when I did the rebase to main it exploded on me😅, I can change it to not use it but I'd rather use the newer constructor

@ckaiser ckaiser removed their assignment Apr 18, 2026
@aseprite-bot

Copy link
Copy Markdown
Collaborator

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

@dacap

dacap commented Apr 20, 2026

Copy link
Copy Markdown
Member

I can change it to not use it but I'd rather use the newer constructor

Don't worry, we can integrate this in beta as it is, if everything goes ok, main will be beta in a couple of weeks anyway.

@dacap dacap merged commit e65c0c7 into aseprite:beta Apr 20, 2026
12 checks passed
@dacap dacap linked an issue Apr 21, 2026 that may be closed by this pull request
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.

Aseprite can't load .aseprite-extension files

3 participants