Merge pull request 'MERGE: First working iterations of python installer and windows binaries.' (#12) from untested into main
Reviewed-on: https://git.adolin.xyz/saru/lobotomy-mod-pack/pulls/12
This commit is contained in:
commit
971529e783
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,4 +1,7 @@
|
||||
*.log
|
||||
*.env
|
||||
*.spec
|
||||
test.py
|
||||
checklist.md
|
||||
checklist.md
|
||||
/build
|
||||
/dist
|
||||
|
36
README.md
36
README.md
@ -273,54 +273,26 @@ Improves rendering performance when used in combination with a dedicated GPU. (O
|
||||
|
||||
# Libraries and API's
|
||||
|
||||
Libraries don't really have any clear additions to the game. They're generally just big dictionaries with different conde functions that other mods can look up and use - they only exist to make modders' lives easier, and that makes them pretty cool. :)
|
||||
|
||||
tl;dr, **This isn't incomplete, API's and libraries don't need descriptions.**
|
||||
|
||||
### [Fabric Language Kotlin](https://modrinth.com/mod/fabric-language-kotlin)
|
||||
|
||||
|
||||
### [Fabric API](ttps://modrinth.com/mod/fabric-api)
|
||||
|
||||
|
||||
### [Unilib](https://modrinth.com/mod/unilib)
|
||||
|
||||
|
||||
### [CoroUtil](https://modrinth.com/mod/coroutil)
|
||||
|
||||
|
||||
### [Collective](https://modrinth.com/mod/collective)
|
||||
|
||||
|
||||
### [Cardinal Components API](https://modrinth.com/mod/cardinal-components-api)
|
||||
|
||||
|
||||
### [Botarium (Liquid and Energy Transfer API)](https://modrinth.com/mod/botarium)
|
||||
|
||||
|
||||
### [Balm API](https://modrinth.com/mod/balm)
|
||||
|
||||
|
||||
### [Architectury API](https://modrinth.com/mod/architectury-api)
|
||||
|
||||
|
||||
### [Puzzles lib](https://modrinth.com/mod/puzzles-lib)
|
||||
|
||||
|
||||
### [Midnight lib](https://modrinth.com/mod/midnightlib)
|
||||
|
||||
|
||||
### [Iris and Geckolib Animation Compatibility](https://modrinth.com/mod/geckoanimfix)
|
||||
|
||||
|
||||
### [Silk Kotlin Language API](https://modrinth.com/mod/silk)
|
||||
|
||||
|
||||
### [Gecko lib](https://modrinth.com/mod/geckolib)
|
||||
|
||||
|
||||
### [Yet Another Config Library](https://modrinth.com/mod/yacl)
|
||||
|
||||
|
||||
### [Iceberg Library](https://modrinth.com/mod/iceberg)
|
||||
|
||||
|
||||
### [Trinkets](https://modrinth.com/mod/trinkets)
|
||||
|
||||
|
||||
|
BIN
installer.exe
Normal file
BIN
installer.exe
Normal file
Binary file not shown.
79
installer.py
79
installer.py
@ -15,36 +15,39 @@ homedir = os.path.expanduser("~")
|
||||
#we find the minecraft folder in this section.
|
||||
if platform.system() == "Linux":
|
||||
print("Operating system detected: Linux")
|
||||
global mcfolder
|
||||
global modfolder
|
||||
os.chdir(homedir + '/.minecraft')
|
||||
mcfolder = Path.cwd()
|
||||
modfolder = homedir + '/.minecraft/mods'
|
||||
os.chdir(mcfolder)
|
||||
print("Changed current working directory to '" + str(mcfolder) + "'")
|
||||
time.sleep(2)
|
||||
|
||||
elif platform.system() == "Windows":
|
||||
print("Operating system detected: Windows")
|
||||
|
||||
elif platform.system() == "Darwin":
|
||||
print("Operating system detected: MacOS")
|
||||
print("fuck you.")
|
||||
#needs function
|
||||
|
||||
os.chdir(homedir + '/.minecraft')
|
||||
mcfolder = Path.cwd()
|
||||
|
||||
modfolder = homedir + '/.minecraft/mods'
|
||||
os.chdir(homedir)
|
||||
os.chdir("AppData")
|
||||
os.chdir("Roaming")
|
||||
os.chdir(".minecraft")
|
||||
mcfolder = Path.cwd()
|
||||
os.chdir("mods")
|
||||
modfolder = Path.cwd
|
||||
os.chdir(mcfolder)
|
||||
print("Changed current working directory to '" + str(mcfolder) + "'")
|
||||
time.sleep(2)
|
||||
|
||||
os.chdir(mcfolder)
|
||||
|
||||
print("Changed current working directory to '" + str(mcfolder) + "'")
|
||||
time.sleep(2)
|
||||
|
||||
|
||||
|
||||
#begin mod backup and deletion
|
||||
#THIS DOESN'T CURRENTLY BACK UP EXISTING MODS.
|
||||
try:
|
||||
shutil.rmtree(modfolder)
|
||||
shutil.rmtree(str("mods"))
|
||||
print("Cleared previous mods.")
|
||||
except OSError as e:
|
||||
print("Error: %s - %s." % (e.filename, e.strerror))
|
||||
|
||||
os.mkdir(modfolder)
|
||||
os.mkdir(str("mods"))
|
||||
|
||||
|
||||
|
||||
@ -67,6 +70,46 @@ tar_file_path = 'mods.tar.gz'
|
||||
extract_to = 'mods'
|
||||
extract_tar_archive(tar_file_path, extract_to)
|
||||
|
||||
print("All Done!")
|
||||
|
||||
print()
|
||||
print()
|
||||
print(" :+++++=")
|
||||
print(" -++++++.")
|
||||
print(" :++++++. .")
|
||||
print(" .++++++. -=. -: .::")
|
||||
print(" =+++++. :=. =- .--:. -")
|
||||
print(" =+++++. .+ =: -=. :=")
|
||||
print(" =+++++. +. :.=* .=: =:")
|
||||
print(" =++++= .+ +. -- :+ .=")
|
||||
print(" .+++++= .= ..=: :. =")
|
||||
print(" .++=++- .= .+- =")
|
||||
print(" ==++*=::.. * +")
|
||||
print(" =*#-+- .:---:. :=-- .-=%. --=#- ..::.--")
|
||||
print(" :#=-*- .::--:.*: .+ #@. - *@@- .. -#:")
|
||||
print(" ++:*. .:--==:--:: .%%-.. :=.")
|
||||
print(" =++.:...::::::..... :---+-:. .:.: --")
|
||||
print(" *=..:::.. .=.")
|
||||
print(" :-. .=:::")
|
||||
print(" ..:=. :-..-:---:")
|
||||
print(" ==:- .=-: :=-")
|
||||
print(" .= =- :--. .--")
|
||||
print(" -- :-:. -= .::::-:=.")
|
||||
print(" :- =- :+ .+")
|
||||
print(" --- -: .+ +.")
|
||||
print(" := -= .+ =:")
|
||||
print(" +. -: =: :=.")
|
||||
print(" -. .=: --.....::-:")
|
||||
print(" .=- .= :-:----- .::::.")
|
||||
print(" .-: .= ..+:")
|
||||
print(" -=......:.:-:+ :=")
|
||||
print(" .::--::... := -")
|
||||
print(" =: =:")
|
||||
print(" --::.--")
|
||||
print(" ....")
|
||||
#someone's gonna think im a furry or a femboy or some shit because of this.
|
||||
print()
|
||||
|
||||
print("sigma")
|
||||
print("all done!")
|
||||
print("This script will exit and close in ten seconds. :)")
|
||||
time.sleep(10)
|
Reference in New Issue
Block a user