Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ci: addupdate-appcast script#171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 6 commits intomainfromethan/update-appcast-script
May 30, 2025
Merged

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedMay 28, 2025
edited
Loading

Third PR for#47.

Adds a script to update an existingappcast.xml.

This will be called in CI to update the appcast before uploading it back to our feed URL (releases.coder.com/...). It's currently not used anywhere.

Invoked like:

swift run update-appcast -i appcast.xml -s CoderDesktop.pkg.sig -v 0.5.1 -o appcast.xml -d ${{ github.event.release.body }}

To update an appcast that looks like:

appcast.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rssxmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"version="2.0">    <channel>        <title>Coder Desktop</title>        <item>            <title>v0.5.1</title>            <description><![CDATA[<h2>What's Changed</h2><ul><li>fix: don't create http client if signed out by @ethanndickson in <a href="https://github.com/coder/coder-deskt%E2%80%A6r-desktop-macos/pull/170">https://github.com/coder/coder-deskt…r-desktop-macos/pull/170</a></li></ul><p><strong>Full Changelog</strong>: <a href="https://github.com/coder/coder-desktop-macos/compare/v0.5.0...v0.5.1">https://github.com/coder/coder-desktop-macos/compare/v0.5.0...v0.5.1</a></p>]]></description>            <pubDate>Thu, 29 May 2025 06:08:56 +0000</pubDate>            <sparkle:channel>stable</sparkle:channel>            <sparkle:version>0.5.1</sparkle:version>            <sparkle:fullReleaseNotesLink>https://github.com/coder/coder-desktop-macos/releases</sparkle:fullReleaseNotesLink>            <sparkle:minimumSystemVersion>14.0.0</sparkle:minimumSystemVersion>            <enclosureurl="https://github.com/coder/coder-desktop-macos/releases/download/v0.5.1/Coder-Desktop.pkg"type="application/octet-stream"sparkle:installationType="package"sparkle:edSignature="NkyCj7Lzpw95P0N95SQHiBCjDLZYVukbRR3aOjGZAuL5Dc+I//DfTCRFCxoQNhA38uu/CCAR8v9E4SgMkDdmAA=="length="39630183"></enclosure>        </item>        <item>            <title>Preview</title>            <pubDate>Thu, 29 May 2025 06:08:08 +0000</pubDate>            <sparkle:channel>preview</sparkle:channel>            <sparkle:version>0.5.0.3</sparkle:version>            <sparkle:fullReleaseNotesLink>https://github.com/coder/coder-desktop-macos/releases</sparkle:fullReleaseNotesLink>            <sparkle:minimumSystemVersion>14.0.0</sparkle:minimumSystemVersion>            <enclosureurl="https://github.com/coder/coder-desktop-macos/releases/download/preview/Coder-Desktop.pkg"type="application/octet-stream"sparkle:installationType="package"sparkle:edSignature="L0cFeyoy+D/Zgm3eXok87SKmgIUka8m2b+g7UWPReF4UhFUb4RlDsZ5PxXKd5MrtsaODGUz2iRMWraO7aQg+DA=="length="39630898"></enclosure>        </item>    </channel></rss>

Producing a notification like:

image

sachk reacted with hooray emoji
@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ethanndicksonethanndicksonforce-pushed theethan/update-appcast-script branch fromd4fc465 to0a75509CompareMay 28, 2025 11:15
@ethanndicksonethanndickson changed the titleci: add update-appcast scriptci: addupdate-appcast scriptMay 28, 2025
Copy link

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a new Swift CLI tool to update a Sparkle appcast XML with a fresh<item> entry using provided version and signature.

  • Introducesupdate-appcast script for automating appcast updates.
  • Defines its Swift package and tailored SwiftLint configuration.
  • Updates global SwiftLint settings to ignore the build directory.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

FileDescription
scripts/update-appcast/Sources/main.swiftImplements the appcast update logic and XML edits
scripts/update-appcast/Package.swiftDeclares the Swift package and its dependencies
scripts/update-appcast/.swiftlint.ymlDisablestodo andtrailing_comma rules
.swiftlint.ymlExcludes the.build/ directory from lint checks

@ethanndicksonethanndickson marked this pull request as ready for reviewMay 28, 2025 11:22
@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedMay 30, 2025
edited
Loading

Merge activity

  • May 30, 2:27 AM UTC: A user started a stack merge that includes this pull request viaGraphite.
  • May 30, 2:27 AM UTC:@ethanndickson merged this pull request withGraphite.

@ethanndicksonethanndickson merged commit96da5ae intomainMay 30, 2025
4 checks passed
@ethanndicksonethanndickson deleted the ethan/update-appcast-script branchMay 30, 2025 02:27
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@deansheatherdeansheatherdeansheather approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp