Title: Sparkling Appcast
Author: usielriedl
Published: <strong>2025 年 2 月 23 日</strong>
Last modified: 2025 年 3 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/sparkling-appcast.svg)

# Sparkling Appcast

 作者：[usielriedl](https://profiles.wordpress.org/usielriedl/)

[下载](https://downloads.wordpress.org/plugin/sparkling-appcast.0.7.zip)

 * [详情](https://cn.wordpress.org/plugins/sparkling-appcast/#description)
 * [评价](https://cn.wordpress.org/plugins/sparkling-appcast/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/sparkling-appcast/#developers)

 [支持](https://wordpress.org/support/plugin/sparkling-appcast/)

## 描述

Sparkling Appcast is a WordPress plugin. It allows you to use your WordPress site
to distribute your macOS App via [Sparkle](https://sparkle-project.org/). Sparkling
Appcast supports multiple channels (alpha, beta, …).

Sparkling Appcast exposes a new shortcode to display a list of app builds.

    ```
    [sappcast_display_builds sappcast_channel="{channel-id-or-slug}"]
    ```

Configure Sparkle to ingest the appcast.xml at https://your.site/wp-json/sparkling-
appcast/v1/appcast.xml. You will see something like the following XML.

    ```
    <rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
        <channel>
            <title>MyApp</title>
            <link>/wp-json/sparkling-appcast/v1/appcast.xml</link>
            <item>
                <title>Version 1.0.1 (2)</title>
                <description><![CDATA[ This version is better but not yet released! ]]></description>
                <sparkle:channel>Alpha</sparkle:channel>
                <sparkle:version>2</sparkle:version>
                <sparkle:shortVersionString>1.0.1</sparkle:shortVersionString>
                <pubDate>Wed, 08 Jan 2025 08:56:19 +0000</pubDate>
                <sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
                <enclosure url="http://localhost:8088/wp-content/uploads/2025/01/app_v2.zip" length="4713394" type="application/octet-stream"/>
            </item>
            <item>
                <title>Version 1.0.0 (1)</title>
                <description><![CDATA[ - New features - New bugs ]]></description>
                <sparkle:version>1</sparkle:version>
                <sparkle:shortVersionString>1.0.0</sparkle:shortVersionString>
                <pubDate>Wed, 08 Jan 2025 07:43:06 +0000</pubDate>
                <sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
                <enclosure url="http://localhost:8088/wp-content/uploads/2025/01/app_v1.zip" length="4713394" type="application/octet-stream"/>
            </item>
        </channel>
    </rss>
    ```

### Configuration

To get started name the application you want to distribute on your WordPress site.
You can find the settings page under the App Builds menu.

If you have multiple channels besides `stable`, you can should add them on wp-admin
under the App Builds menu.

### Usage

### Fastlane

We recommend you use the [`wp_sparkling_appcast` plugin](https://github.com/Usiel/fastlane-plugin-wp_sparkling_appcast)
to upload assets and create builds.

### Other

To distribute a new build, you must upload the asset (1), create a build draft (
2), after which you can finalize the build and publish it (3). Steps 1 and 2 are
typically executed by your build server, while step 3 is done by a human.

### 1. Uploading Asset

    ```
    curl --location "localhost:8088/wp-json/wp/v2/media?status=publish&title=MyApp%20${VERSION}%20(${BUILD_NUMBER})" \
        --header "Content-Disposition: attachment; filename=\"myapp_v${VERSION}_${BUILD_NUMBER}.zip\"" \
        --header 'Content-Type: application/zip' \
        --user "${USER}:${APPLICATION_PASSWORD}" \
        --data-binary '@/path/to/asset.zip'
    ```

### 2. Create Build Draft

    ```
    curl --location 'localhost:8088/wp-json/wp/v2/sappcast_app_build' \
        --header 'Content-Type: application/json' \
        --user "${USER}:${APPLICATION_PASSWORD}" \
        --data '{
            "meta": {
                "sappcast_app_build_version": string,
                "sappcast_app_build_number": int,
                "sappcast_app_build_min_system_version": string,
                "sappcast_app_build_attachment_id": int,
                "sappcast_app_build_changelog": string,
            },
            "sappcast_channel": int,
            "status": "draft"
        }'
    ```

### 3. Publish Build

The user may now go to “App Build” on wp-admin and publish the draft after verifying
the build. After publishing the build will appear on the relevant appcast (`/wp-
json/sparkling-appcast/v1/appcast.xml`).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Sparkling Appcast」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ usielriedl ](https://profiles.wordpress.org/usielriedl/)

[帮助将「Sparkling Appcast」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/sparkling-appcast)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/sparkling-appcast/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/sparkling-appcast/)，或通过[RSS](https://plugins.trac.wordpress.org/log/sparkling-appcast/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/sparkling-appcast/)。

## 额外信息

 *  版本 **0.7**
 *  最后更新：**2 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.10**
 *  语言
 * [English (US)](https://wordpress.org/plugins/sparkling-appcast/)
 * 标签
 * [distribution](https://cn.wordpress.org/plugins/tags/distribution/)[macos](https://cn.wordpress.org/plugins/tags/macos/)
   [sparkle](https://cn.wordpress.org/plugins/tags/sparkle/)
 *  [高级视图](https://cn.wordpress.org/plugins/sparkling-appcast/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/sparkling-appcast/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/sparkling-appcast/reviews/)

## 贡献者

 *   [ usielriedl ](https://profiles.wordpress.org/usielriedl/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/sparkling-appcast/)