Skip to main content

PyInstaller wrapper that runs DistroMate packaging/publish after build

Project description

pyinstaller-plus

pyinstaller-plus 是对 PyInstaller 完全兼容的升级版本,有以下关键特性,补齐了pyinstaller在分发方便的不足

  1. 打包安装包,基于inno setup
  2. 自动增量更新
  3. 直链分发
  4. DAU等核心指标监控
  5. 激活校验功能(请前往distromate创建app使用SDK快速接入指南接入sdk)

如何安装

pip install pyinstaller-plus

使用方式

使用方式与pyinstaller完全兼容,唯一区别新增两个参数

-p publish模式,发布安装包和增量包

--dm-version 发布的版本,例如1.0.0

仅打包模式(与pyinstaller完全一致)

pyinstaller-plus your.spec

打包发布构建

建议使用应用详情页的SDK快速接入指南,AI一键实现配置和打包 image.png

以下介绍方案为手动集成方案

1.登录

distromate login

2.创建app

image.png

3.在项目根目录创建distromate.yml配置文件

appid: your appid  
name: QuestionDownload  
description: 题库下载工具  

package:
  name: questiondownload
  executable: dist/download_question_gui.exe
  target: dist
  publisher: QuestionDownload Publisher
  language: chinese
  
# 更新时保留的文件
preservePaths:  
  - config  
  - data  
  
# 打包时忽略文件  
ignores:  
  - "*.log"  
  - temp/  
  - "__pycache__/"  
  - "*.pyc"

4.打包上传

pyinstaller-plus -p --dm-version 1.2.3 your.spec
[pyinstaller-plus] $ distromate publish -v 1.10.6
https://distromate-static.s3.bitiful.net/launcher/1.0.2/meta.json
Warning: 未设置图标文件,将使用默认图标
Building update package...
  Compressed: 35.8 MB -> 35.0 MB (97.9%)
Building setup package...
Uploading questiondownload-Setup-1.10.6.exe 100% [==============================] (38/38 MB, 6.4 MB/s)               
Uploaded questiondownload-Update-1.10.6.bin (cached)                                                                 
Uploading questiondownload-Update-1.10.6.manifest.json 100% [==============================] (5.9/5.9 kB, 17 kB/s)
Published questiondownload:1.10.6
下载链接: https://api.distromate.net/api/applications/pvlrkj4y/installer
(QuestionDownload) PS C:\Users\yangs\PycharmProjects\2510\QuestionDownload> 
  1. 打包完成

打包后的文件位于dm-out/目录,上传的链接为 https://api.distromate.net/api/applications/pvlrkj4y/installer

使用效果

安装界面

image.png

更新界面

image.png

管理界面,丰富指标

image.png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyinstaller_plus-0.1.6.tar.gz (11.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyinstaller_plus-0.1.6-py3-none-any.whl (11.9 MB view details)

Uploaded Python 3

File details

Details for the file pyinstaller_plus-0.1.6.tar.gz.

File metadata

  • Download URL: pyinstaller_plus-0.1.6.tar.gz
  • Upload date:
  • Size: 11.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pyinstaller_plus-0.1.6.tar.gz
Algorithm Hash digest
SHA256 29e2df8700ab7f4f824b6ac78023aefc223a7c9df8da1c77900ec731c88faf62
MD5 4e4dbb2de0b519d695a9bd43341e7d1d
BLAKE2b-256 e618f88205f68d27918220bdfb4ae7e6f2d638166084eb5958221419696b5cbd

See more details on using hashes here.

File details

Details for the file pyinstaller_plus-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pyinstaller_plus-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0b7f86670c5e40921a51ec20712afb55e1f5c0b4810fd47c0f3d8a4df4342b45
MD5 8c0e14c6e4fa00eba3408ac1a48a6264
BLAKE2b-256 100540f36929ce6110df17f968807d4583d66ad773cddaf6b4674f58213a954e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page