createDebFile.sh script have to be run from the main project:
./linux/createDebFile.sh It will build .deb file in /build folder in project root directory.
To install run:
sudo apt install ./build/transaction-decorator_1.0.1.deb -yTo run:
transaction-decoratoror from all apps.
To remove run:
sudo apt remove transaction-decorator -yRequired packages installed on a system:
sudo apt install python3-pip
pip install --break-system-packages PySide6
sudo apt install python3-pandas python3-numpy python3-matplotlibEnsure you have snapcraft installed:
sudo snap install snapcraft --classicthen in linux directory, where a script is located:
snapcraftFor debug use (it will shell into built snap):
snapcraft --debugIf prompt for
Support for 'multipass' needs to be set up. Would you like to do it now?
or
LXD is required but not installed. Do you wish to install LXD and configure it with the defaults?
you may need to init it, described here
Accept (y).
Built package will be in linux directory.
To install snap from compiled package:
sudo snap install --dangerous --classic ./transaction-decorator_1.0.1_amd64.snapTo run snap from the terminal (and see logs):
transaction-decoratorTo run with debugger shell:
snap run --shellTo clean snapcraft:
snapcraft cleanto remove snap:
sudo snap remove transaction-decoratorto run additional app mentioned in apps part of snapcraft.yaml for example to run copying scripts run:
snap run transaction-decorator.run-user-data-copysudo usermod -a -G lxd $USERnewgrp lxdlxd initleave default, if default is existing then use existing
File "/snap/snapcraft/10595/lib/python3.10/site-packages/packaging/version.py", line 200, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '5.21.1 LTS'
you need to update snapcraft to deal with it:
sudo snap refresh snapcraft