1 (edited by unalcalde 2020-05-19 18:23:45)

Topic: Portable versions of Terminal Block generator plugin

Hi, I checked that there are a lot of posts and problems about the installation of the plugin.

Now are available portable versions for Linux and Windows (if somebody uses Mac OS and could create also the Mac version will be perfect).

This portable versions don't require installation and works well with the portable versions of QET.


LINUX
Copy the plugin portable file to the same folder that the AppImage version of Qelectrotech:
  1. Download the desired QET portable version from https://download.qelectrotech.org/qet/builds/AppImage/
  2. Mark as executable (help here:  https://discourse.appimage.org/t/how-to … -appimage/).
  3. Download the plugin portable file from https://download.qelectrotech.org/qet/b … tor_linux/
  4. Rename to "qet_tb_generator" if it has another file name.
  5. Mark "qet_tb_generator" as executable too.
  6. Copy to the same folder that the QET appimage is.
  7. Launch the plugin from the "Project" menu of QET

If you have some problem launche the plugin from QET, add the directory where the AppImage is to the PATH. Example if the directory is "/home/<your_user_name>/bin", edit the "~/.bashrc" file adding:
     export PATH="/home/$USER/bin:$PATH"



WINDOWS
Copy the plugin portable file to the same readytouse folder of QET
  1. Download the desired QET portable version from https://download.qelectrotech.org/qet/builds/nightly/
  2. Uncompress
  3. Download the plugin portable file from https://download.qelectrotech.org/qet/b … rator_win/
  4. Rename to "qet_tb_generator.exe" if it has another file name.
  5. Copy "qet_tb_generator.exe" inside the descompressed folder of QET (point 2)
  6. Launch the plugin from the "Project" menu of QET


If you are not using the portable version of QET, copy the plugin portable file inside the folder where the executable QET file are. Remember mark as exexutable on Linux's.

(Thanks @scorpio810 for uploading files)

Re: Portable versions of Terminal Block generator plugin

Hi Unalcalde,

betweentimes, I made minors changes, QET can launch qet_tb_generator if portable plugin is added on QET $home directory like DXFtoelmt converter :
https://git.tuxfamily.org/qet/qet.git/c … 5e30ae57cf

On AppImage and Flatpak:
Get https://download.qelectrotech.org/qet/b … _generator
Mark "qet_tb_generator" as executable
Put it  to ~/.qet/

For Windows user get https://download.qelectrotech.org/qet/b … erator.exe
and put it on your C:\Users\[username]\AppData\qet\

I spent a lot of time trying to create a qet_tb_generator mac bundle, and I forgot to write to you, sorry.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

3 (edited by unalcalde 2020-05-20 11:14:42)

Re: Portable versions of Terminal Block generator plugin

Perfect !! Thanks.  Now it's easy to install.
You could even change the description to install the plugin when you click on the menu in QET if the plugin is not installed.

To create the portable versions I've used http://www.pyinstaller.org/ . Works also on Mac OS.

I found the solution because of the rigth click no works on Mac. For historical reasons the rigth click is Button-2 on Win & Linux, but is Button-3 on Mac.
I attach the main.py file fixed to overwrite yours if you were able to create the bundle on Mac.

Thanks again.

Post's attachments

Attachment icon main.py 29.93 kb, 5528 downloads since 2020-05-20 

Re: Portable versions of Terminal Block generator plugin

In some cases it is not the best solution, I recommend using pip3 for installing qet_tb_generator plugin, but for Flatpak, maybe AppImage or ReadyTosUse packages a portable plugin is perfect.

On Snap all plugins are installed by default, if you use my PPA or Debian repository you have deb package for this plugin.

Like ReadyToUse user put qet_tb_generator under ReadyToUse directory QET can launch it, but sometime a message box appear and indicate plugin is not found when it has just launched ...

For the Windows installer QET package, it is difficult to find the PATH of the portable plug-in, depending on the version of Windows -> https://forum.qt.io/topic/79408/get-com … ata-folder

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."