mirror of
https://github.com/debpalash/VoiceStudio.git
synced 2026-12-04 17:38:17 +00:00
- The .deb's maintainer scripts are electron-builder's own plus a block that links the pre-rename /usr/bin/voicestudio-electron to the new command (replacing only a missing or dangling link) and removes it only when it is still this package's link. Sandbox tests run both blocks. - Absolute paths and URLs passed by the desktop launcher (Exec ... %U) now open the app instead of being parsed as a command.
12 lines
508 B
Python
12 lines
508 B
Python
"""Run package layout contracts as part of the normal repository suite."""
|
|
from pathlib import Path
|
|
import subprocess
|
|
|
|
|
|
def test_unified_cli_package_layouts():
|
|
root = Path(__file__).resolve().parents[1]
|
|
result = subprocess.run(['node', '--test', 'electron/tests/cli-bundle.test.mjs',
|
|
'electron/tests/deb-scripts.test.mjs'], cwd=root,
|
|
capture_output=True, text=True, timeout=60)
|
|
assert result.returncode == 0, result.stdout + result.stderr
|