Get optional device/platform from scripts
This commit is contained in:
parent
d9edef2f3c
commit
4fb457aee2
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cwd=`dirname $0`
|
cwd=`dirname $0`
|
||||||
devices=("iphone ipad mac appletv")
|
devices=("iphone ipad mac appletv")
|
||||||
|
if [[ -n "$1" ]]; then
|
||||||
|
devices=("$1")
|
||||||
|
fi
|
||||||
for device in $devices; do
|
for device in $devices; do
|
||||||
$cwd/../screenshots/export.sh $device
|
$cwd/../screenshots/export.sh $device
|
||||||
$cwd/../screenshots/compose-device.sh $device
|
$cwd/../screenshots/compose-device.sh $device
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
platform=$1
|
platforms=("iOS macOS tvOS")
|
||||||
|
if [[ -n "$1" ]]; then
|
||||||
|
platforms=("$1")
|
||||||
|
fi
|
||||||
|
for platform in $platforms; do
|
||||||
bundle exec fastlane --env secret,$platform asc_metadata
|
bundle exec fastlane --env secret,$platform asc_metadata
|
||||||
|
done
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
platform=$1
|
platforms=("iOS macOS tvOS")
|
||||||
|
if [[ -n "$1" ]]; then
|
||||||
|
platforms=("$1")
|
||||||
|
fi
|
||||||
|
for platform in $platforms; do
|
||||||
bundle exec fastlane --env secret,$platform asc_screenshots
|
bundle exec fastlane --env secret,$platform asc_screenshots
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue