diff --git a/.gitignore b/.gitignore index 02f5bac..de08437 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ macros.json macro_images/ -macro_images/* \ No newline at end of file +macro_images/* +build/ \ No newline at end of file diff --git a/dist/mp-server.exe b/dist/mp-server.exe new file mode 100644 index 0000000..12c8633 Binary files /dev/null and b/dist/mp-server.exe differ diff --git a/mp-server.py b/mp-server.py index f1248ee..ce7bf33 100644 --- a/mp-server.py +++ b/mp-server.py @@ -1,17 +1,14 @@ import tkinter as tk -from tkinter import filedialog, simpledialog, ttk +from tkinter import filedialog, ttk import json import socket import threading -import base64 import os import pyautogui import subprocess from PIL import Image, ImageTk import pystray # Add this import for system tray functionality -import io import uuid -import shutil class MacroPadServer: def __init__(self, root): diff --git a/mp-server.spec b/mp-server.spec new file mode 100644 index 0000000..0001e65 --- /dev/null +++ b/mp-server.spec @@ -0,0 +1,38 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['mp-server.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='mp-server', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +)