mirror of
https://gitlab.com/Merith-TK/vanillia-modpack.git
synced 2024-11-26 23:36:21 +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=
|
LiteloaderVersion=
|
||||||
LogPrePostOutput=true
|
LogPrePostOutput=true
|
||||||
MCLaunchMethod=LauncherPart
|
MCLaunchMethod=LauncherPart
|
||||||
OverrideCommands=false
|
OverrideCommands=true
|
||||||
OverrideConsole=false
|
OverrideConsole=false
|
||||||
OverrideGameTime=false
|
OverrideGameTime=false
|
||||||
OverrideJavaArgs=false
|
OverrideJavaArgs=false
|
||||||
|
@ -19,9 +19,12 @@ OverrideMCLaunchMethod=false
|
||||||
OverrideMemory=false
|
OverrideMemory=false
|
||||||
OverrideNativeWorkarounds=false
|
OverrideNativeWorkarounds=false
|
||||||
OverrideWindow=false
|
OverrideWindow=false
|
||||||
iconKey=default
|
PostExitCommand=
|
||||||
lastLaunchTime=1638305015568
|
PreLaunchCommand=$INST_DIR/update-pack.exe
|
||||||
lastTimePlayed=152
|
WrapperCommand=
|
||||||
name=Vanillia 1.18
|
iconKey=vanillia
|
||||||
|
lastLaunchTime=
|
||||||
|
lastTimePlayed=
|
||||||
|
name=Vanillia Pack 1.18
|
||||||
notes=
|
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