Package Versioning
Manual Import
A version of Weasis can be manually imported into ViewerHub in the tab “Package”.
The file to be imported must have a name in this format: “weasis-native xxx.zip”.
This file corresponds to one of the Weasis release versions produced here: https://github.com/nroduit/Weasis/releases/
Import process
The import process of a Weasis version follows these different steps:
- Retrieval of the “weasis-native xxx.zip” file, decompression and storage of the version’s resources/bundles in minio/S3.
- Compression of the version’s “resources” folder into a zip file (necessary for Weasis) and storage on S3.
- Update on S3 of the Weasis version compatibility file if the imported version is more recent.
- Cache update regarding Weasis version compatibility mapping.
- Loading of the version’s properties into the database.
Nexus Import
Currently not available, will be implemented later.
Remove Weasis package version
In order to delete a version of Weasis, it is necessary to select the version to delete, then right-click and confirm the deletion.
Deleting a version whose “launch config” is “default” will result in the deletion of all versions linked to this “default”.
Group-specific versions
It is possible to create a version of Weasis that will only be launched for certain groups of users or hosts.
In the “package” view, click on “Create new group config”.
Then select the desired Weasis version (package version + launch config) and the new group to associate then press “Create”.
The new version will thus be displayed in the list of versions already present.
If the user or host belongs to the group, the previously created configuration will be used to launch Weasis.
Configuring version properties
ViewerHub allows to modify the properties of versions on-the-fly.
To modify a property, it is necessary to open a version and double-click on the property to modify.
For example to modify the name of the viewer for a package/launch config/group:
- modification of the property “weasis.name”
- launching the viewer after modification: the label corresponds to the modified property