MIT License

项目介绍

Choochmeque/msixbundle-rs 是一个托管在 GitHub 上的开源项目,主要使用 Rust 编写,采用 MIT License 许可证,目前获得 25 个 Star、3 次 Fork。

仓库全名
Choochmeque/msixbundle-rs
开源许可证
MIT License
Star 数
25
Fork 数
3
未关闭 Issue
2

README 摘要

msixbundle-rs A Rust library and CLI tool for building and signing Windows MSIX packages and MSIX bundles using the Windows SDK toolchain. Overview msixbundle-rs provides a programmatic Rust interface to automate the creation, signing, and validation of multi-architecture MSIX packages and bundles. It's designed for build pipelines that need to package Windows applications for distribution via the Microsoft Store or…

完整内容见 GitHub 原始 README 或本页 。

常见问题

msixbundle-rs 用什么语言开发?

主要使用 Rust 编写,采用 MIT License 许可证,目前有 25 个 Star。

msixbundle-rs 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 msixbundle-rs 的源码?

可以直接克隆仓库:git clone https://github.com/Choochmeque/msixbundle-rs.git,默认分支为 main;安装与运行步骤见仓库 README。

msixbundle-rs 最近还在维护吗?

仓库最近一次更新为 2 天前,当前有 2 个未关闭 Issue;Star 数为 25,可作为社区活跃度的参考。

关于

Build and sign Windows MSIX packages and bundles with Rust

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
31
价值分
15
活跃状态
活跃

语言占比

JavaScript
Rust

Release

README

msixbundle-rs

A Rust library and CLI tool for building and signing Windows MSIX packages and MSIX bundles using the Windows SDK toolchain.

Overview

msixbundle-rs provides a programmatic Rust interface to automate the creation, signing, and validation of multi-architecture MSIX packages and bundles. It’s designed for build pipelines that need to package Windows applications for distribution via the Microsoft Store or enterprise deployment.

Packages

Package Description Registry
msixbundle Core library for MSIX packaging operations crates.io
msixbundle-cli Command-line tool for packaging workflows crates.io
@choochmeque/msixbundle-cli-win32 Prebuilt Windows binaries (x64 + arm64) as an npm sidecar for @choochmeque/tauri-windows-bundle npm

Features

  • Multi-architecture support: Build separate MSIX packages for x64 and ARM64 architectures
  • Automatic bundle creation: Combine per-architecture packages into a single .msixbundle
  • SDK auto-discovery: Automatically locate Windows SDK tools (MakeAppx.exe, makepri.exe, signtool.exe, appcert.exe) via registry
  • Resource indexing: Optionally generate resources.pri with makepri.exe for qualified assets
  • Code signing: Sign packages and bundles with PFX certificates
  • Timestamping: Support for both RFC3161 and Authenticode timestamp protocols
  • Validation: Validate packages using Windows App Certification Kit (WACK) and verify signatures
  • Manifest parsing: Extract version and display name from AppxManifest.xml

Requirements

  • Windows OS: This tool requires Windows and the Windows SDK
  • Windows SDK 10: MakeAppx.exe, MakePri.exe and signtool.exe must be installed
  • Windows App Certification Kit (WACK): Required for validation (appcert.exe)
    • Installed automatically with the Windows SDK
  • Rust: 1.85+ (2024 edition)

Quick Start

CLI Tool

cargo install msixbundle-cli
msixbundle-cli \
  --out-dir ./output \
  --dir-x64 ./build/x64/AppxContent \
  --dir-arm64 ./build/arm64/AppxContent \
  --pfx ./signing.pfx \
  --pfx-password "secret"

Library

[dependencies]
msixbundle = "1.1"
use msixbundle::*;

let tools = locate_sdk_tools()?;
let manifest = read_manifest_info(x64_dir)?;
let msix = pack_arch(&tools, x64_dir, out_dir, &manifest, "x64")?;

See the individual crate READMEs for detailed documentation.

Project Structure

msixbundle-rs/
├── msixbundle/          # Core library
│   ├── src/
│   │   └── lib.rs
│   └── Cargo.toml
├── msixbundle-cli/      # Command-line tool
│   ├── src/
│   │   └── main.rs
│   └── Cargo.toml
└── Cargo.toml           # Workspace configuration

How It Works

  1. Manifest Parsing: Reads AppxManifest.xml from each architecture directory to extract version and identity information
  2. Resource Indexing (optional): Uses makepri.exe to generate resources.pri
  3. Package Creation: Uses MakeAppx.exe to create .msix files for each architecture
  4. Bundle Mapping: Generates a bundlemap.txt file listing all architecture packages
  5. Bundle Creation: Uses MakeAppx.exe to combine packages into a .msixbundle
  6. Signing: Uses signtool.exe to apply digital signatures with optional timestamping
  7. Validation: Optionally validates packages with WACK and verifies signature validity

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT License - see the LICENSE file for details.

Resources

评论

暂无评论