fix(release): address the Amazon submission API by app id instead of package name

The App Submission API stopped resolving apps by package name and now
returns 400 "No app found with the entered Inputs"; it requires the
amzn1.devportal.mobileapp app id from the console URL. Read the id from
AMAZON_APPSTORE_APP_ID, validate it in preflight, and keep the package
name for console-facing messages.
This commit is contained in:
edde746
2026-08-20 00:29:21 +02:00
parent 08a3a61c2a
commit e0122feb2b
2 changed files with 17 additions and 3 deletions
+4 -1
View File
@@ -528,7 +528,10 @@ class DeferredPhaseTest(unittest.TestCase):
defaults.update(args)
return deploy.Context(
args=SimpleNamespace(**defaults),
env={"AMAZON_APPSTORE_PACKAGE_NAME": "com.example.app"},
env={
"AMAZON_APPSTORE_PACKAGE_NAME": "com.example.app",
"AMAZON_APPSTORE_APP_ID": "amzn1.devportal.mobileapp.fixture",
},
state=state,
phases=["amazon", "publish"],
)