Build: Use `pipenv requirements` in appimage build

As of pipenv 2022.04.30, `pipenv lock -r` is deprecated in favor of the
new `pipenv requirements` command.
This commit is contained in:
Mike Salvatore 2022-05-02 08:52:17 -04:00
parent 0a145be25d
commit fdf8198e7f
1 changed files with 2 additions and 2 deletions

View File

@ -84,9 +84,9 @@ install_monkey_island_python_dependencies() {
generate_requirements_from_pipenv_lock () { generate_requirements_from_pipenv_lock () {
local requirements_island=$1 local requirements_island=$1
log_message "Generating a requirements.txt file with 'pipenv lock -r'" log_message "Generating a requirements.txt file with 'pipenv requirements'"
pushd "$BUILD_DIR/monkey_island" pushd "$BUILD_DIR/monkey_island"
"$APPDIR"/AppRun -m pipenv --python "$APPDIR/AppRun" lock -r > "$requirements_island" || handle_error "$APPDIR"/AppRun -m pipenv --python "$APPDIR/AppRun" requirements --hash > "$requirements_island" || handle_error
popd popd
} }