Skip to content

Add Cherry Studio package definition#1775

Open
YuF-9468 wants to merge 2 commits intowimpysworld:mainfrom
YuF-9468:add-cherry-studio-package
Open

Add Cherry Studio package definition#1775
YuF-9468 wants to merge 2 commits intowimpysworld:mainfrom
YuF-9468:add-cherry-studio-package

Conversation

@YuF-9468
Copy link
Copy Markdown

@YuF-9468 YuF-9468 commented Mar 9, 2026

Summary

  • add a new 01-main/packages/cherry-studio definition for Cherry Studio
  • support both amd64 and arm64 by selecting matching .deb assets from GitHub Releases
  • append cherry-studio to 01-main/manifest

Closes #1753

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adding a new package involves custom logic for URL parsing and version extraction which should be verified by a human to ensure correctness and source legitimacy.

case ${HOST_ARCH} in
amd64) ARCH=amd64 ;;
arm64) ARCH=arm64 ;;
esac
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This mapping seems superfluous. Why don't you just use HOST_ARCH directly below?

@YuF-9468
Copy link
Copy Markdown
Author

@snoack You are absolutely right. The mapping is unnecessary. I'll simplify it to directly use HOST_ARCH.

Per review feedback from @snoack, removed unnecessary ARCH mapping.
Closes wimpysworld#1775
@YuF-9468
Copy link
Copy Markdown
Author

YuF-9468 commented Mar 19, 2026

The fix has been committed in the add-cherry-studio-package branch, removing the redundant ARCH mapping and directly using HOST_ARCH. Please review and merge.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

0 issues found across 1 file (changes from recent commits).

Requires human review: Adding a new package definition involves logic for external asset retrieval and should be verified by a human for security and robustness.

Copy link
Copy Markdown
Member

@philclifford philclifford left a comment

Choose a reason for hiding this comment

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

Please note the reason this fails CI test is that the packaged app is cherrystudio and the manifest entry and definition filename must exactly match the app name.

 apt info ./Cherry-Studio-1.8.3-amd64.deb 
Package: cherrystudio

# No mapping needed - directly use HOST_ARCH
get_github_releases "CherryHQ/cherry-studio" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep -m 1 "browser_download_url.*Cherry-Studio-.*-${HOST_ARCH}\\.deb\\\"" "${CACHE_FILE}" | cut -d'"' -f4)
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.

Suggested change
URL=$(grep -m 1 "browser_download_url.*Cherry-Studio-.*-${HOST_ARCH}\\.deb\\\"" "${CACHE_FILE}" | cut -d'"' -f4)
URL=$(grep -m 1 "browser_download_url.*Cherry-Studio-.*-${HOST_ARCH}\\.deb\\\"" "${CACHE_FILE}" | cut -d '"' -f 4)

Copy link
Copy Markdown
Member

@philclifford philclifford left a comment

Choose a reason for hiding this comment

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

Please rename the definition to match the package name.
Some optimisations and stylistic consistency changes have been suggested.

get_github_releases "CherryHQ/cherry-studio" "latest"
if [ "${ACTION}" != "prettylist" ]; then
URL=$(grep -m 1 "browser_download_url.*Cherry-Studio-.*-${HOST_ARCH}\\.deb\\\"" "${CACHE_FILE}" | cut -d'"' -f4)
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v | cut -d'-' -f3)
Copy link
Copy Markdown
Member

@philclifford philclifford Mar 25, 2026

Choose a reason for hiding this comment

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

Suggested change
VERSION_PUBLISHED=$(echo "${URL}" | cut -d'/' -f8 | tr -d v | cut -d'-' -f3)
VERSION_PUBLISHED=$(cut -d '/' -f 8 <<< "${URL//v/}" )

caddy
caprine
#cawbird
cherry-studio
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.

Suggested change
cherry-studio
cherrystudio

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.

App Request: Cherry Studio

3 participants