zapta / ble_stepper_motor_analyzer

A low cost stepper motor analyzer that uses wireless BLE link to display the data in real time on a Windows/Mac/Linux PC.
40 stars 13 forks source link

Repo size #3

Open dzid26 opened 1 year ago

dzid26 commented 1 year ago

The repo size is approaching 1GB. Can you move the /releases (analyzer.exe, etc) to github releases and rewrite git history while still not many people has forked it?

I also like putting PCB gerbers, pdfs and ibom in release as well.

dzid26 commented 1 year ago

I did it in my fork.

java -jar bfg.jar --delete-files stepper_monitor-2023-06-10_153440.zip
java -jar bfg.jar --delete-files stepper_monitor-2023-06-10_145755.zip
java -jar bfg.jar --delete-files nrf_sniffer_for_bluetooth_le_4.1.1.zip
java -jar bfg.jar --delete-files ibom.html
java -jar bfg.jar --delete-files positions.csv
java -jar bfg.jar --delete-files gerber.zip
java -jar bfg.jar --delete-files bom.csv
java -jar bfg.jar --delete-files bootloader.bin
java -jar bfg.jar --delete-files firmware.bin
java -jar bfg.jar --delete-files partitions.bin
java -jar bfg.jar --delete-files analyzer
java -jar bfg.jar --delete-files analyzer.exe
java -jar bfg.jar --delete-files bluetooth_spec_Core_v4.2.pdf
java -jar bfg.jar --delete-files bluetooth_spec_Core_v5.3.pdf
git push --force
git reflog expire --expire=now --all && git gc --prune=now --aggressive

Now it's 157MB + releases.

zapta commented 1 year ago

Hi @dzid26,

Can you reply here with your your suggestions for repo structure changes and I will check with @AdamV3D if it will not disturb his fork at https://github.com/AdamV3D/ble_stepper_motor_analyser. A text description should do, e.g. 'move file x to location z'.

BTW, the esptool is included in the release to allow users to perform firmware upgrade in the field.

Also, currently the releases covers four aspects of this project, hardware (Kicad), firmware that runs on the devices, python software that runs on the PC, software tools for upgrade such as esptool.

Thanks, Zapta

zapta commented 1 year ago

... another useful change would be to generate the 3 python binaries on the github servers instead of locally. I think github supports this kind of functionality (for Windows, Mac, and Linux) but never used it and not sure if it's included with the free plan.

Zapta.

On Sat, Jun 10, 2023 at 9:32 AM dzid26 @.***> wrote:

I did it https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository in my fork https://github.com/dzid26/ble_stepper_motor_analyzer.

java -jar bfg.jar --delete-files stepper_monitor-2023-06-10_153440.zip java -jar bfg.jar --delete-files stepper_monitor-2023-06-10_145755.zip java -jar bfg.jar --delete-files nrf_sniffer_for_bluetooth_le_4.1.1.zip java -jar bfg.jar --delete-files ibom.html java -jar bfg.jar --delete-files positions.csv java -jar bfg.jar --delete-files gerber.zip java -jar bfg.jar --delete-files bom.csv java -jar bfg.jar --delete-files bootloader.bin java -jar bfg.jar --delete-files firmware.bin java -jar bfg.jar --delete-files partitions.bin java -jar bfg.jar --delete-files analyzer java -jar bfg.jar --delete-files analyzer.exe java -jar bfg.jar --delete-files bluetooth_spec_Core_v4.2.pdf java -jar bfg.jar --delete-files bluetooth_spec_Core_v5.3.pdf

git push --force git reflog expire --expire=now --all && git gc --prune=now --aggressive

Now it's 157MB + releases https://github.com/dzid26/ble_stepper_motor_analyzer/releases/tag/0.1.4.V3D .

— Reply to this email directly, view it on GitHub https://github.com/zapta/ble_stepper_motor_analyzer/issues/3#issuecomment-1585728782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQVMQJGFYDXGQBCE7XGBBTXKSOQFANCNFSM6AAAAAAZBVGQF4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dzid26 commented 1 year ago

I moved esptool to the tools folder, because it made sense.

I think releases should be fairly rare, so it's ok if they contain Kicad, firmware, and PC - all together. If someone wants the latest stuff they will probably be compiling things themselves anyway.

Yes, Github Actions should be able to generate firmware and even gerberas. I have examples of such generation (with resulted files at the bottom) however I never figured out how to make it appear in releases. Still useful if someone just needs the latest bin.

@AdamV3D 's fork would break in the sense that automated merging would stop being possible as it will have "unrelated history". I actually merged their changes already in my fork, but I removed the branding.

AdamV3D commented 1 year ago

I'm not too fussed about what goes where, as long as there is some logic to it and you let me know what I need to change.

dzid26 commented 1 year ago

@zapta If you are happy with the file list that I pruned from the repo, you can simply add my fork to your remotes git remote add dzid_repo https://github.com/dzid26/ble_stepper_motor_analyzer.git, then git reset --hard be5677df7288d70ab088b6f44482682492ed3467 (this will override any local modifications) to be on my be5677df7288d70ab088b6f44482682492ed3467 (or this one 237ca533ef51c63852ebdcca41b90d53d2e325d2), and at the end you git push --force to Github.