check .difyignore file exists

This commit is contained in:
junjie.miao
2025-04-10 18:31:45 +08:00
parent 4c34804529
commit 8a43964070

View File

@ -97,7 +97,9 @@ repackage(){
cd ${CURR_DIR}/${PACKAGE_NAME} cd ${CURR_DIR}/${PACKAGE_NAME}
pip download -r requirements.txt -d ./wheels --index-url ${PIP_MIRROR_URL} pip download -r requirements.txt -d ./wheels --index-url ${PIP_MIRROR_URL}
sed -i '1i\--no-index --find-links=./wheels/' requirements.txt sed -i '1i\--no-index --find-links=./wheels/' requirements.txt
sed -i '/^wheels\//d' .difyignore if [ -f .difyignore ]; then
sed -i '/^wheels\//d' .difyignore
fi
cd ${CURR_DIR} cd ${CURR_DIR}
chmod 755 ${CURR_DIR}/dify-plugin-linux-amd64-5g chmod 755 ${CURR_DIR}/dify-plugin-linux-amd64-5g
${CURR_DIR}/dify-plugin-linux-amd64-5g plugin package ${CURR_DIR}/${PACKAGE_NAME} -o ${CURR_DIR}/${PACKAGE_NAME}-offline.difypkg ${CURR_DIR}/dify-plugin-linux-amd64-5g plugin package ${CURR_DIR}/${PACKAGE_NAME} -o ${CURR_DIR}/${PACKAGE_NAME}-offline.difypkg