跳到正文
Skillpedia
网站与界面(前端)48k · #5146

makepad-deployment

它能做什么

这个工具可以帮你把 Makepad 应用打包成别人能在电脑、手机或网页上安装和使用的程序。它能为 Windows、macOS、Linux、Android 和 iOS 等系统生成安装包。

适用场景

  • ✓当你想把应用分享给别人时。
  • ✓当你准备把应用上架 Google Play 或 Apple App Store 等应用商店时。
  • ✓当你想借助在线服务自动构建应用版本时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-deployment/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-deployment/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“怎样把我的 Makepad 应用做成 Windows 安装程序?”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具通过特定命令(`cargo-packager` 和 `cargo-makepad`)把应用的所有文件打包成最终的安装包。它还可以在在线服务上自动完成这个过程。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Supporting material availability

This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:

  • <support-root>/references/makepad-packaging-action.md
  • ./assets/icon.png
  • ./dist/resources/makepad_widgets
  • ./dist/resources/makepad_fonts_chinese_bold
  • ./dist/resources/makepad_fonts_chinese_bold_2
  • ./dist/resources/makepad_fonts_chinese_regular
  • ./dist/resources/makepad_fonts_chinese_regular_2
  • ./dist/resources/makepad_fonts_emoji
  • ./dist/resources/your_app_resource
  • ./dist/resources/my-makepad-app
  • <support-root>/references/platform-troubleshooting.md

Ask for the original supporting material or an existing installation before using a step that depends on these paths; this catalog does not identify a verified download source for them. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable.

Makepad Packaging & Deployment

This skill covers packaging Makepad applications for all supported platforms.

When to Use

  • You need to package, distribute, or automate deployment of a Makepad application.
  • The task involves desktop installers, APK/IPA builds, WebAssembly output, or CI-based release artifacts.
  • You need guidance on cargo-packager, cargo-makepad, or GitHub Actions packaging flows for Makepad.

Quick Navigation

Platform Tool Output
Desktop cargo-packager .deb, .nsis, .dmg
Android cargo-makepad .apk
iOS cargo-makepad .app, .ipa
Web cargo-makepad Wasm + HTML/JS
CI/CD makepad-packaging-action GitHub Release assets

GitHub Actions Packaging

Use makepad-packaging-action to package Makepad apps in CI. It wraps cargo-packager (desktop) and cargo-makepad (mobile), and can upload artifacts to GitHub Releases.

jobs:
  package:
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v4
      - uses: Project-Robius-China/makepad-packaging-action@v1
        with:
          args: --target x86_64-unknown-linux-gnu --release

Notes:

  • Desktop packages must run on matching OS runners (Linux/Windows/macOS).
  • iOS builds require macOS runners.
  • Android builds can run on any OS runner.

Full inputs/env/outputs and release workflows live in references/makepad-packaging-action.md.

Desktop Packaging

Desktop packaging uses cargo-packager with robius-packaging-commands for resource handling.

Install Tools

# Install cargo-packager
cargo install cargo-packager --locked

# Install robius-packaging-commands (v0.2.1)
cargo install --version 0.2.1 --locked \
    --git https://github.com/project-robius/robius-packaging-commands.git \
    robius-packaging-commands

Configure Cargo.toml

Add packaging configuration to your Cargo.toml:

[package.metadata.packager]
product_name = "YourAppName"
identifier = "com.yourcompany.yourapp"
authors = ["Your Name or Team"]
description = "A brief description of your Makepad application"
# Note: long_description has 80 character max per line
long_description = """
Your detailed description here.
Keep each line under 80 characters.
"""
icons = ["./assets/icon.png"]
out_dir = "./dist"

# Pre-packaging command to collect resources
before-packaging-command = """
robius-packaging-commands before-packaging \
    --force-makepad \
    --binary-name your-app \
    --path-to-binary ./target/release/your-app
"""

# Resources to include in package
resources = [
    # Makepad built-in resources (required)
    { src = "./dist/resources/makepad_widgets", target = "makepad_widgets" },
    { src = "./dist/resources/makepad_fonts_chinese_bold", target = "makepad_fonts_chinese_bold" },
    { src = "./dist/resources/makepad_fonts_chinese_bold_2", target = "makepad_fonts_chinese_bold_2" },
    { src = "./dist/resources/makepad_fonts_chinese_regular", target = "makepad_fonts_chinese_regular" },

…
常见问题

什么是“resources”(资源)?

这些是应用运行所需的额外文件,比如图片、字体或其他数据。工具会确保它们被包含在最终的安装包中。

我需要先安装什么吗?

需要。根据你想创建的安装包类型,你需要在电脑上安装 `cargo-packager` 和 `robius-packaging-commands` 等工具。

什么是 CI?

CI 是“持续集成”(Continuous Integration)的缩写。它是一种自动化流程,会频繁地测试和准备你的代码,这个工具可以在其中使用,自动构建应用安装包。

详情

作者的原始描述

CRITICAL: Use for Makepad packaging and deployment. Triggers on: deploy, package, APK, IPA, 打包, 部署, cargo-packager, cargo-makepad, WASM, Android, iOS, distribution, installer, .deb, .dmg, .nsis, GitHub Actions, CI, action, marketplace

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5146
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能