The-Powder-Toy/android/run-apk.py
2022-04-14 21:18:21 +02:00

25 lines
315 B
Python

import os
import os.path
import subprocess
import sys
(
script,
adb,
build_dir,
phony,
apk_name,
) = sys.argv
apk_path = os.path.join(build_dir, apk_name)
if subprocess.run([
adb,
'shell',
'am',
'start',
'--activity-clear-top',
'-n', 'uk.co.powdertoy.tpt/.PowderActivity',
]).returncode:
sys.exit(1)