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:
Obie Hinojosa 2024-10-28 21:23:46 -05:00
commit 971529e783
4 changed files with 69 additions and 51 deletions

5
.gitignore vendored
View File

@ -1,4 +1,7 @@
*.log *.log
*.env *.env
*.spec
test.py test.py
checklist.md checklist.md
/build
/dist

View File

@ -273,54 +273,26 @@ Improves rendering performance when used in combination with a dedicated GPU. (O
# Libraries and API's # 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 Language Kotlin](https://modrinth.com/mod/fabric-language-kotlin)
### [Fabric API](ttps://modrinth.com/mod/fabric-api) ### [Fabric API](ttps://modrinth.com/mod/fabric-api)
### [Unilib](https://modrinth.com/mod/unilib) ### [Unilib](https://modrinth.com/mod/unilib)
### [CoroUtil](https://modrinth.com/mod/coroutil) ### [CoroUtil](https://modrinth.com/mod/coroutil)
### [Collective](https://modrinth.com/mod/collective) ### [Collective](https://modrinth.com/mod/collective)
### [Cardinal Components API](https://modrinth.com/mod/cardinal-components-api) ### [Cardinal Components API](https://modrinth.com/mod/cardinal-components-api)
### [Botarium (Liquid and Energy Transfer API)](https://modrinth.com/mod/botarium) ### [Botarium (Liquid and Energy Transfer API)](https://modrinth.com/mod/botarium)
### [Balm API](https://modrinth.com/mod/balm) ### [Balm API](https://modrinth.com/mod/balm)
### [Architectury API](https://modrinth.com/mod/architectury-api) ### [Architectury API](https://modrinth.com/mod/architectury-api)
### [Puzzles lib](https://modrinth.com/mod/puzzles-lib) ### [Puzzles lib](https://modrinth.com/mod/puzzles-lib)
### [Midnight lib](https://modrinth.com/mod/midnightlib) ### [Midnight lib](https://modrinth.com/mod/midnightlib)
### [Iris and Geckolib Animation Compatibility](https://modrinth.com/mod/geckoanimfix) ### [Iris and Geckolib Animation Compatibility](https://modrinth.com/mod/geckoanimfix)
### [Silk Kotlin Language API](https://modrinth.com/mod/silk) ### [Silk Kotlin Language API](https://modrinth.com/mod/silk)
### [Gecko lib](https://modrinth.com/mod/geckolib) ### [Gecko lib](https://modrinth.com/mod/geckolib)
### [Yet Another Config Library](https://modrinth.com/mod/yacl) ### [Yet Another Config Library](https://modrinth.com/mod/yacl)
### [Iceberg Library](https://modrinth.com/mod/iceberg) ### [Iceberg Library](https://modrinth.com/mod/iceberg)
### [Trinkets](https://modrinth.com/mod/trinkets) ### [Trinkets](https://modrinth.com/mod/trinkets)

BIN
installer.exe Normal file

Binary file not shown.

View File

@ -15,36 +15,39 @@ homedir = os.path.expanduser("~")
#we find the minecraft folder in this section. #we find the minecraft folder in this section.
if platform.system() == "Linux": if platform.system() == "Linux":
print("Operating system detected: 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": elif platform.system() == "Windows":
print("Operating system detected: Windows") print("Operating system detected: Windows")
os.chdir(homedir)
elif platform.system() == "Darwin": os.chdir("AppData")
print("Operating system detected: MacOS") os.chdir("Roaming")
print("fuck you.") os.chdir(".minecraft")
#needs function mcfolder = Path.cwd()
os.chdir("mods")
os.chdir(homedir + '/.minecraft') modfolder = Path.cwd
mcfolder = Path.cwd() os.chdir(mcfolder)
print("Changed current working directory to '" + str(mcfolder) + "'")
modfolder = homedir + '/.minecraft/mods' time.sleep(2)
os.chdir(mcfolder) os.chdir(mcfolder)
print("Changed current working directory to '" + str(mcfolder) + "'")
time.sleep(2)
#begin mod backup and deletion #begin mod backup and deletion
#THIS DOESN'T CURRENTLY BACK UP EXISTING MODS. #THIS DOESN'T CURRENTLY BACK UP EXISTING MODS.
try: try:
shutil.rmtree(modfolder) shutil.rmtree(str("mods"))
print("Cleared previous mods.") print("Cleared previous mods.")
except OSError as e: except OSError as e:
print("Error: %s - %s." % (e.filename, e.strerror)) 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_to = 'mods'
extract_tar_archive(tar_file_path, extract_to) 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. :)") print("This script will exit and close in ten seconds. :)")
time.sleep(10) time.sleep(10)