Get optional device/platform from scripts

This commit is contained in:
Davide 2024-12-12 16:56:16 +01:00
parent d9edef2f3c
commit 4fb457aee2
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 17 additions and 4 deletions

View File

@ -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

View File

@ -1,3 +1,8 @@
#!/bin/bash #!/bin/bash
platform=$1 platforms=("iOS macOS tvOS")
bundle exec fastlane --env secret,$platform asc_metadata if [[ -n "$1" ]]; then
platforms=("$1")
fi
for platform in $platforms; do
bundle exec fastlane --env secret,$platform asc_metadata
done

View File

@ -1,3 +1,8 @@
#!/bin/bash #!/bin/bash
platform=$1 platforms=("iOS macOS tvOS")
bundle exec fastlane --env secret,$platform asc_screenshots if [[ -n "$1" ]]; then
platforms=("$1")
fi
for platform in $platforms; do
bundle exec fastlane --env secret,$platform asc_screenshots
done