Re-organize the script files, to allow overwriting the main script file with an auto-update without freaking out the shell

This commit is contained in:
cmdr2 2022-10-04 16:33:54 +05:30
parent 889fd98577
commit 7468aa5a4f
4 changed files with 19 additions and 6 deletions

View File

@ -23,6 +23,4 @@ call git --version
call python --version
@rem Download the rest of the installer and UI
call python installer\installer\main.py
pause
call installer\installer\start.bat

View File

@ -0,0 +1,8 @@
@echo off
rem Never edit this file. If you really, really have to, beware that a script doesn't like
rem being overwritten while it is running (the auto-updater will do that).
rem The trick is to update this file while another script is running, and vice versa.
call python %SD_BASE_DIR%\installer\installer\main.py
pause

View File

@ -0,0 +1,9 @@
#!/bin/bash
# Never edit this file. If you really, really have to, beware that a script doesn't like
# being overwritten while it is running (the auto-updater will do that).
# The trick is to update this file while another script is running, and vice versa.
python $SD_BASE_DIR/installer/installer/main.py
read -p "Press enter to continue"

View File

@ -16,6 +16,4 @@ git --version
python --version
# Download the rest of the installer and UI
python installer/installer/main.py
read -p "Press enter to continue"
installer/installer/start.sh