Skip to content

Commit

Permalink
Merge pull request #12 from lmanul/master
Browse files Browse the repository at this point in the history
Allow the binary to be run directly from within dist/. Also fix a couple of typos
  • Loading branch information
melianmiko authored Apr 14, 2024
2 parents 4ccb89f + 8a2bf5b commit d668c02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Unofficial ZeppOS build tool. This application was developed
for community-driven watchface and application development
for Xiaomi Smart Band 7. But you also can use it for any other
ZeppOS-device, if want.
ZeppOS-device, if you want.

It can:
- Convert PNG images into ZeppOS-specific TGA and back
Expand Down Expand Up @@ -83,7 +83,7 @@ some notices.
If you don't set compression format via filename, default
will be used (TGA-P).

If some images have too much colors for TGA-RLP/TGA-P, they
If some images have too many colors for TGA-RLP/TGA-P, they
will be automatically quantized. Backup file will appear in
backup directory near application.

Expand Down
3 changes: 3 additions & 0 deletions zmake/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
APP_PATH = Path(os.path.dirname(sys.executable))
else:
APP_PATH = Path(os.path.dirname(__file__))
if APP_PATH.name == "dist":
# We are running from inside 'dist', fix our path
APP_PATH = APP_PATH.parent / "zmake"


def read_json(path: Path):
Expand Down
2 changes: 1 addition & 1 deletion zmake/zab_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def process(zab_path: Path, server_url: str):


def _get_analytics(sources):
print("Device compatability report:")
print("Device compatibility report:")
for sid in sources:
if sid not in source_to_device:
print(f"- Device not supported by zmake: {sid}, it may be unavailable in bundle")
Expand Down

0 comments on commit d668c02

Please sign in to comment.