fixed path from moving emulated folder

This commit is contained in:
Steven Burnham 2023-12-07 22:19:16 -05:00
parent eee086683b
commit 71eecd8013
No known key found for this signature in database
GPG key ID: D765679712A2FC3D

View file

@ -3,13 +3,15 @@ from . import mparser as macholibre
from .jelly import Jelly from .jelly import Jelly
import plistlib import plistlib
import logging import logging
from pathlib import Path
logger = logging.getLogger("nac") logger = logging.getLogger("nac")
BINARY_HASH = "e1181ccad82e6629d52c6a006645ad87ee59bd13" BINARY_HASH = "e1181ccad82e6629d52c6a006645ad87ee59bd13"
BINARY_PATH = "emulated/IMDAppleServices" BINARY_PATH = "emulated/IMDAppleServices"
BINARY_URL = "https://github.com/JJTech0130/nacserver/raw/main/IMDAppleServices" BINARY_URL = "https://github.com/JJTech0130/nacserver/raw/main/IMDAppleServices"
FAKE_DATA = plistlib.load(open("emulated/data.plist", "rb")) with open(Path(__file__).parent / "data.plist", "rb") as f:
FAKE_DATA = plistlib.load(f)
def load_binary() -> bytes: def load_binary() -> bytes:
# Open the file at BINARY_PATH, check the hash, and return the binary # Open the file at BINARY_PATH, check the hash, and return the binary