Prepare for production release

This commit is contained in:
Zhiyuan Zheng 2021-04-03 11:52:13 +02:00
parent cf33c52e49
commit 9258f4b934
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
42 changed files with 101 additions and 10 deletions

View File

@ -28,7 +28,6 @@ jobs:
- name: -- Step 4 -- Install node dependencies
run: yarn install
- name: -- Step 5 -- Install native dependencies
if: github.ref != 'refs/heads/main'
run: npx pod-install
- name: -- Step 6 -- Install ruby dependencies
run: bundle install

3
fastlane/.gitignore vendored
View File

@ -5,5 +5,4 @@
/README.md
/report.xml
Preview.html
screenshots
Preview.html

17
fastlane/Deliverfile Normal file
View File

@ -0,0 +1,17 @@
languages(['zh-Hans'])
name({
'default' => "tooot"
})
keywords({
'default' => "Mastodon,tooot,social,decentralized,长毛象,社交,去中心"
})
privacy_url({
'default' => "https://tooot.app/privacy-policy"
})
support_url({
'default' => "https://tooot.app"
})
copyright("#{Time.now.year} ©️ xmflsct")
primary_category("SOCIAL_NETWORKING")

View File

@ -57,7 +57,7 @@ private_lane :github_release do |options|
description: "No changelog provided",
commitish: git_branch,
is_prerelease: options[:prerelease],
upload_assets: ["#{File.expand_path('..', Dir.pwd)}/tooot-#{GITHUB_RELEASE}.apk"]
upload_assets: options[:prerelease] ? nil : ["#{File.expand_path('..', Dir.pwd)}/tooot-#{GITHUB_RELEASE}.apk"]
)
end
@ -69,6 +69,8 @@ end
desc "Build and deploy iOS app"
private_lane :build_ios do
BUILD_DIRECTORY = "./ios/build"
IPA_FILE = "#{BUILD_DIRECTORY}/tooot.ipa"
DSYM_FILE = "#{BUILD_DIRECTORY}/tooot.app.dSYM.zip"
update_expo_ios
setup_ci
@ -77,17 +79,39 @@ private_lane :build_ios do
when "candidate"
prepare_appstore_ios
match( type: "appstore", readonly: true )
build_ios_app( export_method: "app-store", include_symbols: true, include_bitcode: true, silent: true )
build_ios_app(
export_method: "app-store",
include_symbols: true,
output_directory: BUILD_DIRECTORY,
silent: true
)
sentry_upload_dsym(
org_slug: ENV["SENTRY_ORGANIZATION"],
project_slug: ENV["SENTRY_PROJECT"],
dsym_path: DSYM_FILE
)
upload_to_testflight(
ipa: IPA_FILE,
demo_account_required: true,
distribute_external: true,
groups: "测试用户",
changelog: "Ready for testing"
changelog: "感谢帮忙测试 tooot 🙏"
)
when "release"
prepare_appstore_ios
match( type: "appstore", readonly: true )
build_ios_app( export_method: "app-store", include_bitcode: true, silent: true )
build_ios_app(
export_method: "app-store",
include_bitcode: true,
output_directory: BUILD_DIRECTORY,
silent: true
)
upload_to_app_store(
force: true,
ipa: IPA_FILE,
submit_for_review: true,
automatic_release: false
)
else
if !is_ci
match( type: "development", readonly: true )
@ -126,6 +150,27 @@ private_lane :build_android do
skip_upload_images: true,
skip_upload_screenshots: true
)
when "release"
prepare_playstore_android
build_android_app(
task: 'clean bundle',
build_type: 'release',
project_dir: "./android",
print_command: false,
print_command_output: false,
properties: {
"expoSDK" => VERSIONS[:expo],
"releaseChannel" => RELEASE_CHANNEL,
"android.injected.signing.store.file" => "#{File.expand_path('..', Dir.pwd)}/android/tooot.jks",
"android.injected.signing.store.password" => ENV["ANDROID_KEYSTORE_PASSWORD"],
"android.injected.signing.key.alias" => ENV["ANDROID_KEYSTORE_ALIAS"],
"android.injected.signing.key.password" => ENV["ANDROID_KEYSTORE_KEY_PASSWORD"],
}
)
upload_to_play_store(
track: "production",
skip_upload_changelogs: true
)
build_android_app(
task: 'assemble',
build_type: 'release',
@ -142,7 +187,6 @@ private_lane :build_android do
}
)
sh "mv #{lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]} #{File.expand_path('..', Dir.pwd)}/tooot-#{GITHUB_RELEASE}.apk"
when "release"
else
if !is_ci
build_android_app(

View File

@ -0,0 +1 @@
../../default/description.txt

View File

@ -0,0 +1 @@
../../../../../screenshots/en_US/0_65.png

View File

@ -0,0 +1 @@
../../../../../screenshots/en_US/1_65.png

View File

@ -0,0 +1 @@
../../../../../screenshots/en_US/2_65.png

View File

@ -0,0 +1 @@
../../../../../screenshots/en_US/3_65.png

View File

@ -0,0 +1 @@
../../default/subtitle.txt

View File

@ -0,0 +1 @@
../../zh-Hans/description.txt

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1 @@
../../../../../screenshots/zh-Hans/0_65.png

View File

@ -0,0 +1 @@
../../../../../screenshots/zh-Hans/1_65.png

View File

@ -0,0 +1 @@
../../../../../screenshots/zh-Hans/2_65.png

View File

@ -0,0 +1 @@
../../../../../screenshots/zh-Hans/3_65.png

View File

@ -0,0 +1 @@
../../zh-Hans/subtitle.txt

View File

@ -0,0 +1 @@
tooot

View File

@ -0,0 +1,5 @@
tooot is an open source, simple yet elegant Mastodon mobile client.
A Mastodon (https://joinmastodon.org/) account is required to use this app.
If you have suggestions, please reach out to @tooot@xmflsct.com or support@tooot.ap.

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
Open source Mastodon client

View File

@ -0,0 +1,10 @@
tooot是一个专门为中文用户社区所打造的开源、简洁长毛象客户端。使用此客户端需要已经拥有一个长毛象https://joinmastodon.org/)账号。
tooot支持
- 多账号登录
- 黑暗或自适应模式
- 可调整正文字体大小
- 消息推送
等功能。
如有使用建议或意见,请联系@tooot@xmflsct.com或者support@tooot.app。

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
开源长毛象客户端

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 KiB

View File

@ -213,11 +213,11 @@ const sharedScreens = (
}
}: SharedUsersProp) => ({
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />,
headerTitle: t(`sharedUsers:heading.${reference}.${type}`, { count }),
headerTitle: t(`shared.users.${reference}.${type}`, { count }),
...(Platform.OS === 'android' && {
headerCenter: () => (
<HeaderCenter
content={t(`sharedUsers:heading.${reference}.${type}`, { count })}
content={t(`shared.users.${reference}.${type}`, { count })}
/>
)
})