




















@@ -6,6 +6,7 @@ require "supply/client"
6677default_platform(:android)
889+ANDROID_FASTLANE_ROOT = File.expand_path(__dir__, Dir.pwd)
910DEFAULT_PLAY_PACKAGE_NAME = "ai.openclaw.app"
1011DEFAULT_PLAY_TRACK = "internal"
1112DEFAULT_PLAY_RELEASE_STATUS = "completed"
@@ -35,7 +36,7 @@ def env_present?(value)
3536end
36373738def android_root
38-File.expand_path("..", __dir__)
39+File.expand_path("..", ANDROID_FASTLANE_ROOT)
3940end
40414142def repo_root
@@ -147,7 +148,7 @@ def sync_android_versioning!
147148end
148149149150def android_release_notes_path
150-File.join(__dir__, "metadata", "android", "en-US", "release_notes.txt")
151+File.join(ANDROID_FASTLANE_ROOT, "metadata", "android", "en-US", "release_notes.txt")
151152end
152153153154def validate_android_release_notes!
@@ -157,7 +158,7 @@ def validate_android_release_notes!
157158end
158159159160def android_changelog_path(version_code)
160-File.join(__dir__, "metadata", "android", "en-US", "changelogs", "#{version_code}.txt")
161+File.join(ANDROID_FASTLANE_ROOT, "metadata", "android", "en-US", "changelogs", "#{version_code}.txt")
161162end
162163163164def sync_android_changelog!(version_code)
@@ -170,7 +171,7 @@ def sync_android_changelog!(version_code)
170171end
171172172173def play_metadata_path
173-File.join(__dir__, "metadata", "android")
174+File.join(ANDROID_FASTLANE_ROOT, "metadata", "android")
174175end
175176176177def play_screenshot_paths
@@ -303,7 +304,7 @@ def upload_play_store_build!(version_metadata, upload_metadata: false, upload_im
303304)
304305end
305306306-load_env_file(File.join(__dir__, ".env"))
307+load_env_file(File.join(ANDROID_FASTLANE_ROOT, ".env"))
307308308309platform :android do
309310desc "Validate Google Play API credentials"
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。