Gallery发布

2.0.0

使用 Export-Clixml 将 PSGallery API 密钥加密保存到用户目录(Windows DPAPI,仅本机当前用户可解密)。
首次运行提示输入密钥并保存,后续运行自动读取,实现一键发布。密钥文件存储在 %APPDATA%\PSGallery\.apikey,与项目目录无关。

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Gallery发布

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 一致行动党。MIT 许可证。

Package Details

Author(s)

  • 埃博拉酱-机器人

Tags

PSGallery publish api key secure encrypt DPAPI PowerShell 发布 密钥 加密

Dependencies

This script has no dependencies.

Release Notes

密钥改成存在用户级

FileList

Version History

Version Downloads Last updated
2.0.0 (current version) 5 7/25/2026
1.1.0 8 7/19/2026
1.0.0 12 6/7/2026