Skip to content

Justfile improvements - #22

Merged
simmsb merged 4 commits into
simmsb:masterfrom
ihrfv:feat/just-improvements
Jun 24, 2026
Merged

simmsb merged 4 commits into
simmsb:masterfrom
ihrfv:feat/just-improvements

Conversation

@ihrfv

@ihrfv ihrfv commented May 21, 2026

Copy link
Copy Markdown
Contributor

This PR adds support to deploy binaries via USB on macOS, as well as improves docs by adding examples and clarifying options.

ihrfv added 3 commits May 21, 2026 12:20
The mount path for macOS is /Volumes/ unlike linux's /run/media/$USER.
Also, when transfering data on macOS to FAT32 or exFAT filesystems,
extra metadata files are generated, which are useless in the context of
running the deployed apps --> an extra clean up mechanism was added.
This commit provides examples and extra explanations to the
aforementioned commands
@ihrfv

ihrfv commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

@flxzt @simmsb Could someone of you please take a look at this PR?

Comment thread justfile Outdated
sync {{"/run/media/$USER" / pb_device}}
{{ pb_mount_root / pb_device / "applications" / target_app_name }}
# 2. Cleaning up macOS metadata files (if applicable)
{{ if os() == "macos" { "rm -f " + (pb_mount_root / pb_device / "applications" / "._") + "*" } else {"echo 'No cleanup needed'"} }}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, otherwise in the application list there are 2 apps:
._inkview-slint-demo and inkview-slint-demo
and the first one doesn't run, it simply contains some metadata

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So cp on macos is creating some _<filename>.app file?

@ihrfv ihrfv May 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as explained in the commit message - yes if it is cping into FAT32 or exFAT filesystems
Correction: ._<filename>.app

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see. Apparently there exists a builtin command named dot_clean on macos which will clean these up for you. So dot_clean {{ pb_mount_root / pb_device / "applications" }} would work to clean these up, while also correctly handling the metadata macos stores in them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this works indeed; however, it is quite slow (on my PB device in particular, it takes up to 10-20 seconds, probably because I also have a KOreader installed and it has many subfolders). For that reason, I've decided to focus on cleaning up files that were created with the cp operation during the deployment.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you see how long it takes with -f to prevent recursive traversal.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do that, but after the first completed run, which took quite long, now it's almost instantaneous XD
Then I guess I can replace clean up with dot_clean instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated with dd4fc78

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simmsb could you please resolve the issue and merge it to the master if all is good with you?

Comment thread justfile
@simmsb

simmsb commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Merged, thank you :)

@simmsb
simmsb merged commit 3177255 into simmsb:master Jun 24, 2026
3 checks passed
@ihrfv
ihrfv deleted the feat/just-improvements branch June 26, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants