All checks were successful
continuous-integration/drone/push Build is passing
section to the installer. UPDATE REQUIRED, even if you aren't gonna use shaders.
69 lines
2.2 KiB
Plaintext
69 lines
2.2 KiB
Plaintext
Target x86-unicode
|
|
|
|
!AddPluginDir "NScurl\x86-unicode"
|
|
!AddPluginDir "NSISunzU\Plugin unicode"
|
|
|
|
Outfile "skapa-season-3-setup.exe"
|
|
InstallDir "$APPDATA\.minecraft-skapa-season-3"
|
|
|
|
Page components
|
|
Page instfiles
|
|
UninstPage uninstConfirm
|
|
UninstPage instfiles
|
|
|
|
Section "-GraalVM"
|
|
SectionIn RO
|
|
|
|
IfFileExists "$APPDATA\.minecraft\graalvm-ee-java17-22.3.1" ok
|
|
|
|
NScurl::http get "https://s3.mcmaster.io/minecraft/graalvm-ee-java17-22.3.1.zip" "$TEMP\graalvm-ee-java17-22.3.1.zip" /CANCEL /INSIST /Zone.Identifier /END
|
|
Pop $0
|
|
StrCmp $0 "success" unzip
|
|
DetailPrint "$0"
|
|
|
|
; File /r "graalvm-ee-java17-22.3.1\*.*"
|
|
|
|
unzip:
|
|
; nsisunz::Unzip "$PLUGINSDIR\myzipfile.zip" "$INSTDIR"
|
|
nsisunz::UnzipToLog "$TEMP\graalvm-ee-java17-22.3.1.zip" "$APPDATA\.minecraft"
|
|
Pop $0
|
|
StrCmp $0 "success" ok
|
|
DetailPrint "$0"
|
|
|
|
ok:
|
|
SectionEnd
|
|
|
|
Section "!Mod Pack"
|
|
SectionIn RO
|
|
|
|
NScurl::http get "https://github.com/packwiz/packwiz-installer/releases/download/v0.5.14/packwiz-installer.jar" "$TEMP\packwiz-installer-v0.5.12-dist.jar" /CANCEL /INSIST /Zone.Identifier /END
|
|
Pop $0
|
|
StrCmp $0 "success" run
|
|
DetailPrint "$0"
|
|
|
|
run:
|
|
|
|
ExecWait '"$APPDATA\.minecraft\graalvm-ee-java17-22.3.1\bin\javaw.exe" -cp $TEMP\packwiz-installer-v0.5.12-dist.jar link.infra.packwiz.installer.Main -s client --pack-folder "$INSTDIR" https://s3.mcmaster.io/minecraft/skapa-season-3/pack.toml'
|
|
SectionEnd
|
|
|
|
Section /o "Shaders"
|
|
IfFileExists "$INSTDIR\shaderpacks\" downloadshader
|
|
|
|
CreateDirectory "$INSTDIR\shaderpacks"
|
|
|
|
downloadshader:
|
|
NScurl::http get "https://s3.mcmaster.io/minecraft/ComplementaryUnbound_r5.2.2.zip" "$TEMP\ComplementaryUnbound_r5.2.2.zip" /CANCEL /INSIST /Zone.Identifier /END
|
|
Pop $0
|
|
StrCmp $0 "success" downloadconfig
|
|
DetailPrint "$0"
|
|
|
|
downloadconfig:
|
|
NScurl::http get "https://s3.mcmaster.io/minecraft/ComplementaryUnbound_r5.2.2.zip.txt" "$TEMP\ComplementaryUnbound_r5.2.2.zip.txt" /CANCEL /INSIST /Zone.Identifier /END
|
|
Pop $0
|
|
StrCmp $0 "success" copy
|
|
DetailPrint "$0"
|
|
|
|
copy:
|
|
CopyFiles "$TEMPDIR\ComplementaryUnbound_r5.2.2.zip" "$INSTDIR\shaderpacks"
|
|
CopyFiles "$TEMPDIR\ComplementaryUnbound_r5.2.2.zip.txt" "$INSTDIR\shaderpacks"
|
|
SectionEnd |