markh-de / KiVar

PCB Assembly Variants for KiCad
MIT License
23 stars 0 forks source link

How to install KiVar from actual repository state #62

Open honzakutil opened 4 months ago

honzakutil commented 4 months ago

How should I install KiVar, if I want to try the newest development version (actual state of the main branch)? There are only instructions for PCM and for manual instalation from the release zip archive in the readme.md.

markh-de commented 4 months ago

There is a simple release shell script that takes care of generating

For Ubuntu (actually, any Linux distro in general, or WSL): Download the repo (clone or get a ZIP archive), go to the source folder, run ./release.sh 0.1.9001 (0.1.9001 being some "close to 0.2.0" version number ... we can only use major.minor.micro scheme).

If it succeeded, you'll find three files in the ../release/0.1.9001 folder:

  1. The package with pcm in its name is an Action Plugin PCM package, that can be installed with the "Install from file..." option in the KiCad PCM.

  2. The .tar.gz file is a Python package containing the kivar CLI app, to be installed with pip install <package_file>.

  3. The other .zip (without pcm) is the "classic" archive containing the Action Plugin, to be extracted into your KiCad plugins directory.

If you fail to create/install the packages on your system (the release script is quite simple and does not yet contain proper error handling), just give me a ping. I already thought about creating a pre-release here on GitHub, so that everyone can give it a try, even before I found the time to complete the documentation.

honzakutil commented 3 months ago

I tested the results of the release.sh script with following results:

markh-de commented 3 months ago

Thanks for reporting. I would classify PCM and pip the "critical" parts. Good to hear that they are working for you, even on a different platform than I use (native Ubuntu 22.04).

I'll have a look at the ZIP file when I find the time.

markh-de commented 3 months ago

Oh, and there actually is a small plugin debugging aid in KiCad:

In the pcbnew preferences dialog, in the Action Plugin section, check if there is a warning icon next to the sorting and file browser icons below the plugin list. If so, click on it to see what prevented the plugin(s) from loading (stack trace).

markh-de commented 3 months ago

The classic ZIP should be fixed now. Please test the PCM and Plugin ZIP again (they share code).

Ref: 2cc1a684bb4931d46281c40d0dd58195dd524857

honzakutil commented 3 months ago

Fix is working, I was able to install all 3 outputs of the release script and start kivar. It reports version 0.2.0-dev32. Tested with latest main (18442f3) on win11 and kicad 8.0.2