Skip to content

Commit

Permalink
New version
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalVortex committed May 22, 2023
1 parent 3ade3b9 commit a8e0512
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 12 deletions.
Binary file added dist/launcher.exe
Binary file not shown.
25 changes: 13 additions & 12 deletions launcher.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import customtkinter #makes tkinters ui look 100x better
import customtkinter #makes tkinter's ui look 100x better

from lib.downloader.bedrock.versions import Versions #for getting links to download an appx
from lib.downloader.bedrock.versions import Versions # for getting links to download an appx

import tkinter #gui window thing
import tkinter # gui window thing

from lib import log4py # a custom made logging module, find it in lib/log4py.py

Expand All @@ -14,7 +14,6 @@

import webbrowser # Used for going to the github page to check for updates

messagebox.showwarning("Warning","this is just a test version to see how it goes, press ok to continue. Enjoy")



Expand All @@ -27,7 +26,7 @@
app = customtkinter.CTk()
app.geometry("700x340")

app.title("MCBE Version Launcher 7.1 (last testing version)")
app.title("MCBE Version Launcher 7.2")



Expand Down Expand Up @@ -70,18 +69,19 @@ def r():
thread.start()
messagebox.showinfo("See download progress","Check the console aka terminal to see download progress!")

def download_thir_for():
def r():
log4py.INFO("Downloading 1.19.30.04...")

version = Versions.get_by_version("1.19.30.04")
def eighty_ot():
def r():
log4py.INFO("Downloading 1.19.80.2...")
version = Versions.get_by_version("1.19.80.2")
log4py.SUCCESS(version.uri)
wget.download(version.uri)
log4py.INFO("\n")
log4py.SUCCESS("Download complete")
thread = threading.Thread(target=r)
thread.start()
messagebox.showinfo("See download progress","Check the console aka terminal to see download progress!")



def github():
webbrowser.open_new_tab("https://github.com/CrystalVortex/Minecraft-Bedrock-Version-Manager")
Expand All @@ -96,8 +96,9 @@ def github():
button = customtkinter.CTkButton(master=app, text="Download 1.19.10", command=download_ten)
button.place(relx=0.5, rely=0.1, anchor=tkinter.CENTER)

button = customtkinter.CTkButton(master=app, text="Download 1.19.30.04", command=download_thir_for)
button.place(relx=0.10, rely=0.1, anchor=tkinter.CENTER)
button = customtkinter.CTkButton(master=app, text="Download 1.19.80.02", command=eighty_ot)
button.place(relx=0.10, rely=0.2, anchor=tkinter.CENTER)


button = customtkinter.CTkButton(master=app, text="Check for updates", command=github)
button.place(relx=0.10, rely=0.5, anchor=tkinter.CENTER)
Expand Down
44 changes: 44 additions & 0 deletions launcher.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
['launcher.py'],
pathex=[],
binaries=[],
datas=[('C:/Users/Bneta/AppData/Local/Programs/Python/Python311/Lib/site-packages/customtkinter', 'customtkinter/')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='launcher',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
Binary file added lib/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file added lib/__pycache__/log4py.cpython-311.pyc
Binary file not shown.
Binary file added lib/downloader/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
customtkinter
colorama
termcolor
wget

0 comments on commit a8e0512

Please sign in to comment.