-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): add apksigner as a build option #6442
Conversation
Can you run |
Sure my bad |
@markemer lint failures should be fixed now |
@markemer Edit: Also removed the |
Looks like some lint errors still showing up. You may just need to run another |
@IT-MikeS ran another |
@markemer any success on checking my PR? |
I got buy in, I think we just needed to wait for Cap5 to ship. Now I just need to get some reviews. |
I think I want to add a fallback for people that still want to use jarsigner (as inadvisable as that may be) do you mind if I make changes to this branch? I'd like you to get credit for your contributions, so if you want me to work elsewhere, we can setup a branch on main to merge this into. |
@markemer no problem, be my guest! Use this branch! |
Cool - will do. |
When will this feature be released. |
Why this is still in review? |
Hey @yooouuri - I think I have this working right - you have to affirmatively pick |
@markemer LGTM added Using the vite plugin I created https://github.com/bistroo/vite-plugin-capacitor import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
viteCapacitorPlugin({
buildOptions: {
keystorepath: 'xxxxxxx',
keystorepass: 'xxxxxxx',
androidreleasetype: 'APK',
signingtype: 'apksigner',
},
}),
],
}) |
Hey @markemer, @IT-MikeS, and @yooouuri can you guys give me an example of how this is used, I've been trying to get this to work without any luck. I've done the following in the pipeline and tried it locally, but only get the following: I've tried both AAB and APK file types with no luck and always seems to trigger the jarsigner error. Please help, thank you! |
@15aabruzzese |
@markemer I tried both APK and AAB. Here is what I am trying to get working locally, I'm getting a incorrect password error but checked the following: console logged it in build.js file, checked that it worked to access the keystore, used both "",'', pass:"", and pass:''. Also I can sign through Android Studio |
@markemer
.addOption(
new Option(
'--signing-type <signingtype>',
'Program used to sign apps (default: jarsigner)',
).choices(['apksigner', 'jarsigner']),
)
.action(
wrapAction(
telemetryAction(
@@ -168,6 +174,7 @@ export function runProgram(config: Config): void {
keystorealias,
keystorealiaspass,
androidreleasetype,
signingtype, For the error, I created a new pull request. #6716 |
@@ -239,9 +239,6 @@ async function loadAndroidConfig( | |||
const buildOptions = { | |||
keystorePath: extConfig.android?.buildOptions?.keystorePath, | |||
keystorePassword: extConfig.android?.buildOptions?.keystorePassword, | |||
keystoreAlias: extConfig.android?.buildOptions?.keystoreAlias, | |||
keystoreAliasPassword: | |||
extConfig.android?.buildOptions?.keystoreAliasPassword, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's mistake, return pls))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, so I created a pull request to correct it, but still not merged yet. 😞
closes: #6284