-
Notifications
You must be signed in to change notification settings - Fork 1
/
portable-launcher.bat
38 lines (38 loc) · 1.46 KB
/
portable-launcher.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
title Plutonium Portable Launcher
:checkdownloader
if exist plutonium-updater.exe (goto start) else (if exist plutonium.exe (goto start) else (goto downloaderchoice))
:downloaderchoice
cls
echo.
echo Which downloader would you like to use in the future?
echo (this will only show up the first time when no downloader is found)
echo.
echo 1 = Official Plutonium Installer
echo 2 = mxve's plutonium-updater.js
echo.
echo if unsure just select the official one.
echo.
set /p c=Select your Option:
if "%c%" GTR "2" goto downloaderchoice
if "%c%" LSS "1" goto downloaderchoice
:download
cls
echo.
echo Downloading Updater...
echo.
if "%c%"=="1" powershell -Command "Start-BitsTransfer "https://cdn.plutonium.pw/updater/plutonium.exe"
if "%c%"=="2" powershell -Command "Start-BitsTransfer "https://github.com/mxve/plutonium-updater.rs/releases/latest/download/plutonium-updater-x86_64-pc-windows-msvc.zip"
tar -xf plutonium-updater-x86_64-pc-windows-msvc.zip & del plutonium-updater-x86_64-pc-windows-msvc.zip >nul
echo Done!
goto start
:start
cls
echo.
if exist "plutonium\bin\plutonium-launcher-win32.exe" (echo Updating Plutonium Files...) else (echo Downloading Plutonium Files...)
if exist plutonium.exe (plutonium.exe -install-dir "plutonium") else (plutonium-updater.exe -l -d "%~dp0\plutonium")
if not exist plutonium.exe start "" "plutonium\bin\plutonium-launcher-win32.exe"
echo.
echo Update finished! Exiting...
timeout /t 3 >nul
exit