Skip to content

Commit

Permalink
core: Added mandatory flag for CodePush script
Browse files Browse the repository at this point in the history
  • Loading branch information
dariodumlijan committed Apr 1, 2024
1 parent 2de3659 commit 27a1c91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/codepush.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
if ARGV[0] == '--all'
puts
puts "Platform: " + " Android ".bg_green
system("appcenter codepush promote -a #{DEPLOY_ANDROID} -s Staging -d Production")
system("appcenter codepush promote -a #{DEPLOY_ANDROID} --mandatory -s Staging -d Production")
puts
puts "Platform: " + " iOS ".bg_green
system("appcenter codepush promote -a #{DEPLOY_IOS} -s Staging -d Production")
system("appcenter codepush promote -a #{DEPLOY_IOS} --mandatory -s Staging -d Production")
puts
else
puts
system("appcenter codepush promote -a #{DEPLOY_PLATFORM} -s Staging -d Production")
system("appcenter codepush promote -a #{DEPLOY_PLATFORM} --mandatory -s Staging -d Production")
puts
end
else
Expand All @@ -39,15 +39,15 @@
puts "Environment: " + " #{DEPLOY_ENVIRONMENT} ".bg_green
puts
puts "Platform: " + " Android ".bg_green
system("appcenter codepush release-react -a #{DEPLOY_ANDROID} -d #{DEPLOY_ENVIRONMENT}")
system("appcenter codepush release-react -a #{DEPLOY_ANDROID} --mandatory -d #{DEPLOY_ENVIRONMENT}")
puts
puts "Platform: " + " iOS ".bg_green
system("appcenter codepush release-react -a #{DEPLOY_IOS} -d #{DEPLOY_ENVIRONMENT}")
system("appcenter codepush release-react -a #{DEPLOY_IOS} --mandatory -d #{DEPLOY_ENVIRONMENT}")
puts
else
puts
puts "Environment: " + " #{DEPLOY_ENVIRONMENT} ".bg_green
system("appcenter codepush release-react -a #{DEPLOY_PLATFORM} -d #{DEPLOY_ENVIRONMENT}")
system("appcenter codepush release-react -a #{DEPLOY_PLATFORM} --mandatory -d #{DEPLOY_ENVIRONMENT}")
puts
end
end

0 comments on commit 27a1c91

Please sign in to comment.