shermp / Kobo-UNCaGED

UNCaGED, for Kobo devices
GNU Affero General Public License v3.0
95 stars 7 forks source link

Build script improvements. Upgrade option added. #19

Closed shermp closed 5 years ago

shermp commented 5 years ago

This PR adds an upgrade build option to the build script. I got sick of manually ignoring/overwriting the unzip process to avoid triggering kfmon. So the script can now build an upgrade archive without kfmon files, font file and FBInk binaries.

I've also performed some script reorganisation while I was at it.

@geek1011 with the project using modules, do I need a go get call anywhere? Or will go build fetch needed dependencies? I haven't tested on a fresh install, so am unsure.

@NiLuJe turns out, replacing the png file on device via ssh/scp triggers kfmon to launch the action. Slightly annoying, but I'm not sure if anything can be done about it...

pgaskin commented 5 years ago

Go will download everything as needed during testing or building, but if you want to do it ahead of time, you can use go mod download.

NiLuJe commented 5 years ago

The usual solution is to do it over a real USBMS session, as the watches are down at that time.

Otherwise, it'd require a dummy "block" watch to bracket the operation.

I usually just skip scp'ing it since it's unlikely to be updated anyway ;).

shermp commented 5 years ago

The usual solution is to do it over a real USBMS session, as the watches are down at that time.

Otherwise, it'd require a dummy "block" watch to bracket the operation.

I usually just skip scp'ing it since it's unlikely to be updated anyway ;).

I thought that would be the case. Part of the reason for this upgrade change, so I can perform an unzip without worrying about it.

shermp commented 5 years ago

Go will download everything as needed during testing or building, but if you want to do it ahead of time, you can use go mod download.

Nah, I'll let go handle it during the build. Thanks for the confirmation.

NiLuJe commented 5 years ago

I'll probably add another block mechanism to KFMon, most likely in the KISS form of checking if a file exists in the config folder, because I do get annoyed by this once in a blue moon when doing stuff over CLI without thinking that it may affect a watched PNG ;p.