Re: Force specific version of an app implementation on Windows?

"Bastian Eicher" <[email protected]> Mon, 4 Nov 2024 19:08:16 +0100
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <[email protected]>
Hello Mateusz,

"0install download --version X.Y ..." will download the specified version into the implementation cache for later use, but "0install run" will still auto-update as long as an internet connection is available.

"0install add" allows you to create a command-line alias for a feed called an "app It also allows you to specify custom restrictions that will be stored as part of the app. However, the Windows version of Zero Install doesn't yet support storing custom restrictions for apps. See https://docs.0install.net/details/apps/ for details.

Instead, you can use the following command line to open the "Customization GUI" on Windows:

0install select --customize https://apps.0install.net/gui/mupdf.xml

There you can override the stability rating of any of the available versions. By setting 1.20.0 to "Preferred", this version will always be selected, even if newer stable versions are available. See https://docs.0install.net/details/policy-settings/#per-application-policy-settings for details.

Regards
Bastian


----- Original message -----
From: Mateusz Czaplinski <[email protected]> 
Sent: 30. Oktober 2024 00:16
To: The Zero Install system <[email protected]>
Subject: [Zero-install-devel] Force specific version of an app implementation on Windows?

Is there a way I can force a specific version of an app to be run by 0install on Windows, disabling transparent upgrades?

I tried the following:

a) tried "0install download --version 1.20.0" - this worked but only temporarily; once the newest 1.24.0 got somehow run/downloaded on my machine, both "0install download --version 1.20.0" and "0install select --version 1.20.0" seemed not really doing anything - "0install run" with no explicit "--version" still seemed to run 1.24.0 

b) created an "app-list.xml", adding the following sub-element in <app>:
<requirements-json> {"extra_restrictions": { "https://apps.0install.net/gui/mupdf.xml": "1.19.0" }} </requirements-json>
- this didn't seem to work with "0install import-apps", it resulted in the newest version 1.24.0 being run afterwards with regular default "0install run"

Is there a way to "downgrade" an app (e.g. mupdf) permanently on my (Windows) machine, so that I can be sure it always runs at a specific older version (e.g. 1.19.0), until I explicitly unblock upgrades again?

Thanks & BR,
/Mateusz.