summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaruro Chari <[email protected]>2026-02-24 22:31:48 +0000
committerKaruro Chari <[email protected]>2026-02-24 22:37:25 +0000
commite92e0b88c2f2906c36f49de05cd071abc9951aaa (patch)
tree0bd11b6269a55bd899616dd391171925853347d0
parente1c94775940c3a7f6039432345f09348e33c367b (diff)
Added notice of missing keystore for signing android app.
-rw-r--r--xmake/rules/platform/android/package.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/platform/android/package.lua b/xmake/rules/platform/android/package.lua
index d38fcecea..22221172f 100644
--- a/xmake/rules/platform/android/package.lua
+++ b/xmake/rules/platform/android/package.lua
@@ -63,6 +63,11 @@ end
function _sign_apk(apksigner, keystore, keystore_pass, final_apk, tmp_path)
local aligned_apk = path.join(tmp_path, "unsigned.apk")
+ if keystore == nil then
+ raise("keystore for signing missing; generate one via `keytool` and make it available")
+ elseif keystore_pass == nil then
+ raise("keystore_pass for signing is missing; please provide it")
+ end
local apksigner_argv = {"sign", "--ks", keystore, "--ks-pass", string.format("pass:%s", keystore_pass), "--out", final_apk, "--in", aligned_apk}
os.vrunv(apksigner, apksigner_argv)
end