mirror of
https://github.com/SteamFramelyHomebrew/framely.git
synced 2026-10-24 11:02:59 +02:00
Add interactive installer wizard and clearer download diagnostics
This commit is contained in:
1 parent
cea24afbc9
commit
4b06a59995
8 files changed
+669
-49
No files matched your search
@@ -142,8 +142,11 @@ exit {code}
|
||||
python = root / 'python3'; python.write_text('#!/bin/sh\nexit 0\n')
|
||||
curl.chmod(0o755); python.chmod(0o755)
|
||||
env = dict(os.environ, PATH=temp + os.pathsep + os.environ['PATH'], FRAMELY_GITHUB_AUTO_FALLBACK=enabled)
|
||||
subprocess.run(['bash', str(ROOT / 'install.sh')], env=env, capture_output=True)
|
||||
result = subprocess.run(['bash', str(ROOT / 'install.sh'), 'install'], env=env, capture_output=True, text=True)
|
||||
self.assertEqual(len(log.read_text().splitlines()), attempts)
|
||||
if attempts == 1:
|
||||
self.assertIn('Failed to download the installer engine', result.stderr)
|
||||
self.assertIn('then retry', result.stderr)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in new issue
Block a user