mirror of
https://github.com/junjiem/dify-plugin-repackaging.git
synced 2025-12-23 15:03:21 +08:00
check .difyignore file exists
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user