Skip to content

Commit 64bf053

Browse files
committed
Bump 1.13.1
- Support Scrcpy on M1 chip mac - Add restart as a word matching alternative for reboot command.
1 parent 21a54d0 commit 64bf053

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7804,7 +7804,7 @@ Use keyword "geny" to list and start Genymotion emulator</string>
78047804
<string>aapt_path</string>
78057805
</array>
78067806
<key>version</key>
7807-
<string>1.13.0</string>
7807+
<string>1.13.1</string>
78087808
<key>webaddress</key>
78097809
<string>https://github.com/zjn0505/adb-alfred</string>
78107810
</dict>

scripts/show_device_options.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def main(wf):
144144
# REBOOT SYSTEM
145145
title = "Reboot system"
146146

147-
if addAll or wordMatch(arg, title):
147+
if addAll or wordMatch(arg, title) or wordMatch(arg, "restart"):
148148
it = wf.add_item(title=title,
149149
uid="adb_reboot",
150150
arg="adb_reboot",
@@ -196,7 +196,12 @@ def main(wf):
196196
try:
197197
rc = subprocess.check_output(['/usr/local/bin/scrcpy', '-v'])
198198
except OSError:
199-
rc = -1
199+
log.error("OS error 1")
200+
try:
201+
rc = subprocess.check_output(['/opt/homebrew/bin/scrcpy', '-v'])
202+
except OSError:
203+
log.error("OS error 2")
204+
rc = -1
200205
if rc != -1 and (addAll or wordMatch(arg, title)) and not isEmulator:
201206
it = wf.add_item(title=title,
202207
uid="scr_cpy",

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.13.0
1+
1.13.1

0 commit comments

Comments
 (0)