mirror of
https://gitlab.com/Merith-TK/vanillia-modpack.git
synced 2024-11-22 22:29:30 +00:00
add update-pack.exe and configs
This commit is contained in:
parent
e9758b3122
commit
5986c89bb3
6 changed files with 59 additions and 6 deletions
Binary file not shown.
Before Width: | Height: | Size: 4.8 KiB |
15
instance.cfg
15
instance.cfg
|
@ -10,7 +10,7 @@ LWJGLVersion=
|
|||
LiteloaderVersion=
|
||||
LogPrePostOutput=true
|
||||
MCLaunchMethod=LauncherPart
|
||||
OverrideCommands=false
|
||||
OverrideCommands=true
|
||||
OverrideConsole=false
|
||||
OverrideGameTime=false
|
||||
OverrideJavaArgs=false
|
||||
|
@ -19,9 +19,12 @@ OverrideMCLaunchMethod=false
|
|||
OverrideMemory=false
|
||||
OverrideNativeWorkarounds=false
|
||||
OverrideWindow=false
|
||||
iconKey=default
|
||||
lastLaunchTime=1638305015568
|
||||
lastTimePlayed=152
|
||||
name=Vanillia 1.18
|
||||
PostExitCommand=
|
||||
PreLaunchCommand=$INST_DIR/update-pack.exe
|
||||
WrapperCommand=
|
||||
iconKey=vanillia
|
||||
lastLaunchTime=
|
||||
lastTimePlayed=
|
||||
name=Vanillia Pack 1.18
|
||||
notes=
|
||||
totalTimePlayed=245
|
||||
totalTimePlayed=
|
||||
|
|
23
update-pack.data/config.toml
Normal file
23
update-pack.data/config.toml
Normal file
|
@ -0,0 +1,23 @@
|
|||
# The program to run, can be defined as a direct
|
||||
# file path, or as an EXE in the $PATH variable
|
||||
program = "busybox.exe"
|
||||
programArgs = "bash -c 'start.sh'"
|
||||
|
||||
# Working Directory
|
||||
workingDirectory = "{data}/"
|
||||
|
||||
# Do not include windows path
|
||||
# If True, only the data directory will be
|
||||
# treated as $PATH
|
||||
isolatedPath = true
|
||||
|
||||
# Global Environment variables to be set
|
||||
# to aid with portability,
|
||||
[environment]
|
||||
# Please do not edit these values unless you
|
||||
# know what you are doing
|
||||
APPDATA = "{data}/APPDATA"
|
||||
LOCALAPPDATA = "{data}/APPDATA"
|
||||
HOME = "{data}/"
|
||||
USERPROFILE = "{data}/"
|
||||
# Put your custom environment variables here
|
6
update-pack.data/start.sh
Normal file
6
update-pack.data/start.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
## DO NOT EDIT THIS FILE, ##
|
||||
## DOING SO WILL BREAK ##
|
||||
## THE UPDATER
|
||||
cp updater.sh update.sh
|
||||
bash update.sh
|
||||
rm update.sh
|
21
update-pack.data/updater.sh
Normal file
21
update-pack.data/updater.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
GITURL="https://github.com/git-for-windows/git/releases/download/v2.33.0.windows.1/PortableGit-2.33.0-64-bit.7z.exe"
|
||||
|
||||
#install git if not found
|
||||
if [ ! -f "git/bin/git.exe" ]; then
|
||||
if [ ! -d "temp" ]; then
|
||||
mkdir temp
|
||||
fi
|
||||
if [ ! -f "temp/git.install.exe" ]; then
|
||||
wget $GITURL -O temp/git.install.exe
|
||||
fi
|
||||
temp/git.install.exe -o git -y
|
||||
fi
|
||||
rm -rf temp
|
||||
|
||||
cd ../
|
||||
|
||||
update-pack.data/git/bin/git.exe config pull.rebase false
|
||||
update-pack.data/git/bin/git.exe pull origin 1.18
|
||||
update-pack.data/git/bin/git.exe branch -D main
|
||||
|
||||
echo "[$0] If there were any errors, please inform the Modpack Author"
|
BIN
update-pack.exe
Normal file
BIN
update-pack.exe
Normal file
Binary file not shown.
Loading…
Reference in a new issue