junjiem/dify-plugin-repackaging
소개
Dify Marketplace와 GitHub에서 Dify 플러그인 패키지를 다운로드한 뒤 [true] 오프라인 패키지로 다시 패키징하는 스크립트 도구입니다.
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- -3
- in 15 days
- -3
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDify 1.0 Plugin Downloading and Repackaging
How To Use With Github Action
- Fork this repository
- Open the GitHub page of your forked repository https://github.com/{your_username}/dify-sandbox-python-requirements-download
- Run workflow

- Download artifact

How To Use With Docker
1.change param in dockerfile
CMD ["./plugin_repackaging.sh", "-p", "manylinux_2_17_x86_64", "market", "antv", "visualization", "0.1.7"]
2.build
docker build -t dify-plugin-repackaging .
3.run
linux
docker run -v $(pwd):/app dify-plugin-repackaging
windows
docker run -v %cd%:/app dify-plugin-repackaging
4.override CMD(opt)
linux
docker run -v $(pwd):/app dify-plugin-repackaging ./plugin_repackaging.sh -p manylinux_2_17_x86_64 market antv visualization 0.1.7
Prerequisites
Operating System: Linux amd64/aarch64, MacOS x86_64/arm64
Notes: The script uses yum to install unzip which is only avialable on RPM-based Linux systems(such as Red Hat Enterprise Linux, CentOS, Fedora, and Oracle Linux), and is now replaced by dnf in latest version. To use the script on other distributions, please install unzip command in advance.
**注意:**本脚本使用yum安装unzip命令,这只适用于基于RPM的Linux系统(如Red Hat Enterprise Linux, CentOS, Fedora, and Oracle Linux)。并且在较新的分发版中,它已被dnf所替代。
因此,当使用其他Linux分发版或者无法使用yum时,请事先安装unzip命令。
Python version: Should be as the same as the version in dify-plugin-daemon which is currently 3.12.x
Clone
git clone https://github.com/junjiem/dify-plugin-repackaging.git
Description
From the Dify Marketplace downloading and repackaging

Example

./plugin_repackaging.sh market langgenius agent 0.0.9

From the Github downloading and repackaging

Example

./plugin_repackaging.sh github junjiem/dify-plugin-agent-mcp_sse 0.0.1 agent-mcp_see.difypkg

Local Dify package repackaging

Example
./plugin_repackaging.sh local ./db_query.difypkg

Platform Crossing Repacking
For repacking the plugins in different platforms between operating and running environment,
please using -p option with a pip platform string.
Typically, uses manylinux2014_x86_64 for plugins running on an x86_64/amd64 OS,
and manylinux2014_aarch64 for aarch64/arm64.
Update Dify platform env Dify平台放开限制
your .env configuration file: Change
FORCE_VERIFYING_SIGNATUREtofalse, the Dify platform will allow the installation of all plugins that are not listed in the Dify Marketplace.your .env configuration file: Change
PLUGIN_MAX_PACKAGE_SIZEto524288000, and the Dify platform will allow the installation of plug-ins within 500M.your .env configuration file: Change
NGINX_CLIENT_MAX_BODY_SIZEto500M, and the Nginx client will allow uploading content up to 500M in size.在 .env 配置文件将
FORCE_VERIFYING_SIGNATURE改为false,Dify 平台将允许安装所有未在 Dify Marketplace 上架(审核)的插件。在 .env 配置文件将
PLUGIN_MAX_PACKAGE_SIZE增大为524288000,Dify 平台将允许安装 500M 大小以内的插件。在 .env 配置文件将
NGINX_CLIENT_MAX_BODY_SIZE增大为500M,Nginx客户端将允许上传 500M 大小以内的内容。
Installing Plugins via Local 通过本地安装插件
Visit the Dify platform's plugin management page, choose Local Package File to complete installation.
访问 Dify 平台的插件管理页,选择通过本地插件完成安装。

Star history
관련 프로젝트 살펴보기
불러오는 중…