You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ "$RUN_MODE"==*"--silent"*||"$RUN_MODE"==*"--debug"* ]];then
85
93
upload_sample_app
86
94
app_platform="android"
@@ -96,6 +104,8 @@ handle_app_upload() {
96
104
buttons {"Use Sample App", "Upload my App (.apk/.ipa)", "Cancel"} ¬
97
105
default button "Upload my App (.apk/.ipa)"
98
106
'2>/dev/null)
107
+
elif [[ "$NOW_OS"=="windows" ]];then
108
+
choice=$(powershell.exe -ExecutionPolicy Bypass -File "$GUI_SCRIPT" -Command "ClickChoice" -Title "BrowserStack App Upload" -Prompt "How would you like to select your app?" -Choices "Use Sample App,Upload my App (.apk/.ipa),Cancel" -DefaultChoice "Upload my App (.apk/.ipa)"| tr -d '\r')
99
109
else
100
110
echo"How would you like to select your app?"
101
111
selectoptin"Use Sample App""Upload my App (.apk/.ipa)""Cancel";do
@@ -144,21 +154,25 @@ upload_sample_app() {
144
154
145
155
upload_custom_app() {
146
156
local app_platform=""
147
-
local file_path
157
+
local file_path="$1"
148
158
149
-
# Convert to POSIX path
159
+
if [ -z"$file_path" ];then
160
+
# Convert to POSIX path
150
161
# Convert to POSIX path
151
162
if [[ "$NOW_OS"=="macos" ]];then
152
163
file_path=$(osascript -e \
153
164
'POSIX path of (choose file with prompt "Select your .apk or .ipa file:" of type {"apk", "ipa"})' \
log_info "Resetting Plan summary: Web $WEB_PLAN_FETCHED ($TEAM_PARALLELS_MAX_ALLOWED_WEB max), Mobile $MOBILE_PLAN_FETCHED ($TEAM_PARALLELS_MAX_ALLOWED_MOBILE max)"
294
+
log_info "Silent mode: Plan summary: Web $WEB_PLAN_FETCHED ($TEAM_PARALLELS_MAX_ALLOWED_WEB max), Mobile $MOBILE_PLAN_FETCHED ($TEAM_PARALLELS_MAX_ALLOWED_MOBILE max)"
0 commit comments