File tree Expand file tree Collapse file tree 3 files changed +31
-19
lines changed Expand file tree Collapse file tree 3 files changed +31
-19
lines changed Original file line number Diff line number Diff line change 1- .PHONY : help setup setup_hook setup_snapshot setup_fastlane update update_fastlane update_swiftformat format screenshots build test testflight upload_screenshots
1+ .PHONY : help setup setup_hook setup_snapshot setup_fastlane update update_fastlane update_swiftformat format screenshots build test fastlane testflight upload_screenshots
22
33# Цвета и шрифт
44YELLOW =\033[1;33m
@@ -253,6 +253,23 @@ build:
253253test :
254254 xcodebuild -project SwiftUI-Days.xcodeproj -scheme SwiftUI-Days -sdk iphonesimulator -destination ' platform=iOS Simulator,name=iPhone 16 Pro' test -testPlan SwiftUI-DaysTests
255255
256+ # # fastlane: Запустить меню команд fastlane
257+ fastlane :
258+ @bash -c ' \
259+ set -e; \
260+ if [ ! -d fastlane ] || [ ! -f fastlane/Fastfile ]; then \
261+ printf " $( YELLOW) fastlane не инициализирован в проекте$( RESET) \n" ; \
262+ $(MAKE ) setup_fastlane; \
263+ if [ ! -d fastlane ] || [ ! -f fastlane/Fastfile ]; then \
264+ printf " $( RED) Нужно инициализировать fastlane перед использованием$( RESET) \n" ; \
265+ exit 1; \
266+ fi ; \
267+ fi ; \
268+ eval " $$ (rbenv init -)" ; \
269+ rbenv shell $(RUBY_VERSION ) ; \
270+ bundle exec fastlane; \
271+ '
272+
256273# # screenshots: Запустить fastlane snapshot для генерации скриншотов приложения
257274screenshots :
258275 @bash -c ' \
@@ -285,7 +302,7 @@ upload_screenshots:
285302 printf " $( YELLOW) Загрузка существующих скриншотов в App Store Connect...$( RESET) \n" ; \
286303 eval " $$ (rbenv init -)" ; \
287304 rbenv shell $(RUBY_VERSION ) ; \
288- bundle exec fastlane ios upload_screenshots_only ; \
305+ bundle exec fastlane ios upload_screenshots ; \
289306 '
290307
291308# # testflight: Собрать и отправить сборку в TestFlight через fastlane
Original file line number Diff line number Diff line change @@ -22,28 +22,23 @@ platform :ios do
2222 end
2323
2424 desc "Загрузить существующие скриншоты в App Store Connect"
25- lane :upload_screenshots_only do
25+ lane :upload_screenshots do
2626 upload_to_app_store (
2727 skip_metadata : true ,
2828 skip_screenshots : false ,
2929 force : true ,
3030 submit_for_review : false ,
3131 reject_if_possible : false ,
32- screenshots_path : "./fastlane/screenshots"
32+ overwrite_screenshots : true ,
33+ run_precheck_before_submit : false ,
34+ skip_binary_upload : true
3335 )
3436 end
3537
36- desc "Сгенерировать скриншоты и загрузить в App Store Connect "
37- lane :screenshots_and_upload do
38+ desc "Выполнить первые 2 команды вместе "
39+ lane :make_and_upload_screenshots do
3840 screenshots
39- upload_to_app_store (
40- skip_metadata : true ,
41- skip_screenshots : false ,
42- force : true ,
43- submit_for_review : false ,
44- reject_if_possible : false ,
45- screenshots_path : "./fastlane/screenshots"
46- )
41+ upload_screenshots
4742 end
4843
4944 desc "Собрать и отправить сборку в TestFlight"
Original file line number Diff line number Diff line change @@ -23,21 +23,21 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
2323
2424Сгенерировать новые локализованные скриншоты
2525
26- ### ios upload_screenshots_only
26+ ### ios upload_screenshots
2727
2828``` sh
29- [bundle exec] fastlane ios upload_screenshots_only
29+ [bundle exec] fastlane ios upload_screenshots
3030```
3131
3232Загрузить существующие скриншоты в App Store Connect
3333
34- ### ios screenshots_and_upload
34+ ### ios make_and_upload_screenshots
3535
3636``` sh
37- [bundle exec] fastlane ios screenshots_and_upload
37+ [bundle exec] fastlane ios make_and_upload_screenshots
3838```
3939
40- Сгенерировать скриншоты и загрузить в App Store Connect
40+ Выполнить первые 2 команды вместе
4141
4242### ios release
4343
You can’t perform that action at this time.
0 commit comments