Skip Linux launcher integration off Linux
This commit is contained in:
parent
71fef0a2e4
commit
0aec6c10c5
|
|
@ -2245,7 +2245,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "pdf-presenter"
|
||||
version = "0.1.65"
|
||||
version = "0.1.66"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"chrono",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ default-members = ["crates/pdf-presenter"]
|
|||
resolver = "3"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.65"
|
||||
version = "0.1.66"
|
||||
edition = "2024"
|
||||
license = "MIT"
|
||||
repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
### 0.1.66
|
||||
|
||||
- Run the optional Linux desktop-launcher installation test only on Linux workers;
|
||||
platform-neutral desktop-entry escaping tests still run everywhere. Include the
|
||||
installer’s stderr when a real Linux integration failure occurs. Linux checks pass
|
||||
with 86.50% whole-application coverage; the release binary is rebuilt.
|
||||
|
||||
### 0.1.65
|
||||
|
||||
- Hide routine rolling-buffer information when the presenter footer is hidden,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ class LauncherTests(unittest.TestCase):
|
|||
self.assertIn('StartupWMClass=pdf-presenter', entry)
|
||||
self.assertIn('" %f\n', entry)
|
||||
|
||||
@unittest.skipUnless(sys.platform.startswith("linux"), "Linux launcher integration")
|
||||
def test_install_from_bundle_uses_xdg_location(self):
|
||||
with tempfile.TemporaryDirectory() as temp:
|
||||
root = Path(temp)
|
||||
|
|
@ -31,11 +32,16 @@ class LauncherTests(unittest.TestCase):
|
|||
(bundle / 'pdf-presenter').touch()
|
||||
(bundle / 'pdf-presenter.png').touch()
|
||||
env = dict(os.environ, XDG_DATA_HOME=str(root / 'data'))
|
||||
subprocess.run([sys.executable, str(script)], env=env, check=True, capture_output=True)
|
||||
result = subprocess.run(
|
||||
[sys.executable, str(script)], env=env, capture_output=True, text=True
|
||||
)
|
||||
self.assertEqual(result.returncode, 0, result.stderr)
|
||||
installed = root / 'data/applications/pdf-presenter.desktop'
|
||||
self.assertEqual(installed.read_text(), launcher.desktop_entry(
|
||||
bundle / 'pdf-presenter', bundle / 'pdf-presenter.png'))
|
||||
(bundle / 'pdf-presenter').unlink()
|
||||
result = subprocess.run([sys.executable, str(script)], env=env, capture_output=True)
|
||||
result = subprocess.run(
|
||||
[sys.executable, str(script)], env=env, capture_output=True, text=True
|
||||
)
|
||||
self.assertNotEqual(result.returncode, 0)
|
||||
self.assertTrue(installed.is_file())
|
||||
|
|
|
|||
Loading…
Reference in New Issue