update and build for windows

This commit is contained in:
jknapp 2025-03-15 20:55:20 -07:00
parent 664636d280
commit a18f51858a
4 changed files with 41 additions and 5 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
macros.json
macro_images/
macro_images/*
macro_images/*
build/

BIN
dist/mp-server.exe vendored Normal file

Binary file not shown.

View File

@ -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):

38
mp-server.spec Normal file
View File

@ -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,
)