Skip to content

Bulk asynchronous downloader for multiple file hosts

ci: add release start files to git tracking

NTFSvolumefc92f0cc1c99
diff --git a/scripts/release/start_linux.sh b/scripts/release/start_linux.sh
new file mode 100755
index 000000000..7d590f96a
--- /dev/null
+++ b/scripts/release/start_linux.sh
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# User defined variables
+
+PYTHON=""
+VENV_DIR=""
+COMMANDLINE_ARGS=""
+
+# Check the installed Python version
+MIN_PYTHON_VER="3.11"
+MAX_PYTHON_VER="3.13"
+
+if [ -z "$PYTHON" ]
+then
+ PYTHON=python3
+fi
+
+"$PYTHON" -c "
+import sys
+
+MIN_PYTHON_VER = tuple(map(int, '$MIN_PYTHON_VER'.split('.')))
+MAX_PYTHON_VER = tuple(map(int, '$MAX_PYTHON_VER'.split('.')))
+current_version = sys.version_info
+
+exit(0 if (current_version >= MIN_PYTHON_VER and current_version < MAX_PYTHON_VER) else 1)
+"
+
+if [ $? -ne 0 ]; then
+ "$PYTHON" -V
+ echo "Unsupported Python version installed. Needs version >= $MIN_PYTHON_VER and < $MAX_PYTHON_VER"
+ exit 1
+fi
+
+
+# Create and activate venv
+
+if [ -z "$VENV_DIR" ]
+then
+ VENV_DIR="${0%/*}/venv"
+fi
+
+if [ ! -f "${VENV_DIR}/bin/activate" ]
+then
+ echo Creating virtual environment
+ "$PYTHON" -m venv "${VENV_DIR}"
+ echo
+fi
+
+
+echo Attempting to start venv
+. "${VENV_DIR}/bin/activate"
+echo
+
+echo Updating PIP
+"$PYTHON" -m pip install --upgrade pip
+echo
+
+echo Installing / Updating Cyberdrop-DL
+pip uninstall -y -q -q cyberdrop-dl
+pip install --upgrade "cyberdrop-dl-patched>=5.7,<6.0" && clear && cyberdrop-dl $COMMANDLINE_ARGS
+echo
\ No newline at end of file
diff --git a/scripts/release/start_macOS.command b/scripts/release/start_macOS.command
new file mode 100755
index 000000000..7d590f96a
--- /dev/null
+++ b/scripts/release/start_macOS.command
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# User defined variables
+
+PYTHON=""
+VENV_DIR=""
+COMMANDLINE_ARGS=""
+
+# Check the installed Python version
+MIN_PYTHON_VER="3.11"
+MAX_PYTHON_VER="3.13"
+
+if [ -z "$PYTHON" ]
+then
+ PYTHON=python3
+fi
+
+"$PYTHON" -c "
+import sys
+
+MIN_PYTHON_VER = tuple(map(int, '$MIN_PYTHON_VER'.split('.')))
+MAX_PYTHON_VER = tuple(map(int, '$MAX_PYTHON_VER'.split('.')))
+current_version = sys.version_info
+
+exit(0 if (current_version >= MIN_PYTHON_VER and current_version < MAX_PYTHON_VER) else 1)
+"
+
+if [ $? -ne 0 ]; then
+ "$PYTHON" -V
+ echo "Unsupported Python version installed. Needs version >= $MIN_PYTHON_VER and < $MAX_PYTHON_VER"
+ exit 1
+fi
+
+
+# Create and activate venv
+
+if [ -z "$VENV_DIR" ]
+then
+ VENV_DIR="${0%/*}/venv"
+fi
+
+if [ ! -f "${VENV_DIR}/bin/activate" ]
+then
+ echo Creating virtual environment
+ "$PYTHON" -m venv "${VENV_DIR}"
+ echo
+fi
+
+
+echo Attempting to start venv
+. "${VENV_DIR}/bin/activate"
+echo
+
+echo Updating PIP
+"$PYTHON" -m pip install --upgrade pip
+echo
+
+echo Installing / Updating Cyberdrop-DL
+pip uninstall -y -q -q cyberdrop-dl
+pip install --upgrade "cyberdrop-dl-patched>=5.7,<6.0" && clear && cyberdrop-dl $COMMANDLINE_ARGS
+echo
\ No newline at end of file
diff --git a/scripts/release/start_windows.bat b/scripts/release/start_windows.bat
new file mode 100755
index 000000000..0ec05fcf7
--- /dev/null
+++ b/scripts/release/start_windows.bat
@@ -0,0 +1,50 @@
+@echo off
+setlocal enabledelayedexpansion
+
+rem User defined variables
+
+set "PYTHON="
+set "VENV_DIR="
+set "COMMANDLINE_ARGS="
+
+rem Check the installed Python version
+chcp 65001
+set MIN_PYTHON_VER=3.11
+set MAX_PYTHON_VER=3.13
+if not defined PYTHON (set PYTHON=python)
+"%PYTHON%" -c "import sys; MIN_PYTHON_VER = tuple(map(int, '%MIN_PYTHON_VER%'.split('.'))); MAX_PYTHON_VER = tuple(map(int, '%MAX_PYTHON_VER%'.split('.'))); current_version = sys.version_info; exit(0 if (current_version >= MIN_PYTHON_VER and current_version < MAX_PYTHON_VER) else 1)"
+
+if %ERRORLEVEL% equ 1 (
+ "%PYTHON%" -V
+ echo Unsupported python version installed. Needs version ^>=%MIN_PYTHON_VER% and ^<%MAX_PYTHON_VER%
+ pause
+ exit /b 1
+)
+
+
+rem Create and activate venv
+if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
+
+if not exist "%VENV_DIR%" (
+ mkdir "%VENV_DIR%"
+)
+
+if not exist "%VENV_DIR%\Scripts\activate.bat" (
+ echo Creating virtual environment
+ "%PYTHON%" -m venv "%VENV_DIR%"
+ echo:
+)
+
+echo Attempting to start venv
+call "%VENV_DIR%\Scripts\activate.bat"
+echo:
+
+rem Program startup
+echo Updating PIP
+python -m pip install --upgrade pip
+echo:
+
+echo Installing / Updating Cyberdrop-DL
+pip uninstall -y -q -q cyberdrop-dl
+pip install --upgrade "cyberdrop-dl-patched>=5.7,<6.0" && cls && cyberdrop-dl %COMMANDLINE_ARGS%
+pause
\ No newline at end of file