File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,10 @@ function update_panel() {
8383 case " $package_mode " in
8484 docker)
8585 activate_python_venv
86+ # install_python310
8687 # uv pip install -U --no-deps --force-reinstall hiddify-panel/src
8788 uv pip install /opt/hiddify-manager/hiddify-panel/src
89+ # pip install -U hiddifypanel
8890 ;;
8991 v* )
9092 update_progress " Updating..." " Hiddify Panel from $current_panel_version to $latest " 10
@@ -93,6 +95,7 @@ function update_panel() {
9395 if [ ! -z " $USE_VENV " ]; then
9496 activate_python_venv
9597 if [ " $USE_VENV " == " 310" ]; then
98+ install_python310
9699 pip install -U --no-deps --force-reinstall git+https://github.com/hiddify/HiddifyPanel@${package_mode}
97100 pip install git+https://github.com/hiddify/HiddifyPanel@${package_mode}
98101 else
@@ -148,6 +151,7 @@ function update_panel() {
148151 ;;
149152 release)
150153 # TODO release should change to 3.13
154+ install_python310
151155 activate_python_venv
152156 # error "you can not install release version 8 using this script"
153157 # exit 1
@@ -160,7 +164,7 @@ function update_panel() {
160164 update_progress " Updating..." " Hiddify Panel from $current_panel_version to $latest " 10
161165 # pip3 install -U hiddifypanel==$latest
162166 disable_panel_services
163- pip install -U hiddifypanel
167+ pip install -U wheel hiddifypanel
164168 update_progress " Updated..." " Hiddify Panel to $latest " 50
165169 return 0
166170 fi
332336
333337export USE_VENV=310
334338if [[ " $@ " == * " dev " * || " $@ " == * " docker " * || " $@ " == * " develop " * ]]; then
335- export USE_VENV=313
339+ export USE_VENV=310
336340fi
337341
338342# Run the main function and log the output
You can’t perform that action at this time.
0 commit comments