usbsas icon indicating copy to clipboard operation
usbsas copied to clipboard

RTFM question

Open miharix opened this issue 9 months ago • 2 comments

Sorry for stupid question...

If I want to change parameters in config.toml and config.css Do I need to rebuild, remove old and install new packages ?

miharix avatar Apr 26 '24 14:04 miharix

So If I got it correctly(it works on my test machine):

For config.toml -> No just copy to

/etc/usbsas/config.toml

and reboot

For changes in css, html, js (usbsas/usbsas-client/web/) Rebuild & reinstall

$ cargo build --release -p usbsas-client
$ cargo-deb --manifest-path=usbsas-client/Cargo.toml --no-build
$ cd target/debian
$ sudo apt install ./usbsas-core_X.Y.Z_amd64.deb \
                   ./usbsas-server_X.Y.Z_amd64.deb \
                   ./usbsas-analyzer-server_X.Y.Z_amd64.deb \
                   ./usbsas-kiosk_X.Y.Z_amd64.deb \
                   ./usbsas-hid_X.Y.Z_amd64.deb

miharix avatar May 03 '24 12:05 miharix

You can edit config.toml after installing the package, it is considered as a configuration file so it won't be overwritten if you reinstall the usbsas-core package.

If you want to edit the web files of the client, it would be better to edit them and then rebuild the usbsas-kiosk package.

losynix avatar Jun 03 '24 14:06 losynix