Skip to content
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

Remove signature with vanilla zip #59

Merged
merged 2 commits into from
Jan 4, 2021
Merged

Remove signature with vanilla zip #59

merged 2 commits into from
Jan 4, 2021

Conversation

mateherber
Copy link
Contributor

@mateherber mateherber commented Dec 18, 2020

Use zip to remove items from apk as aapt seems to be generating corrupt zip files.

Test project: https://app.bitrise.io/app/864f8dcf926d2b55#/builds

STEP-2

main.go Outdated
func removeFilesFromBuildArtifact(aapt, pth string, files []string) error {
cmdSlice := append([]string{aapt, "remove", pth}, files...)
func removeFilesFromBuildArtifact(pth string, files []string) error {
cmdSlice := append([]string{"zip", "-d", pth}, files...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, it would be nice to print the full path of the zip binary in the command, or at the beginning of the step using exec.LookPath. (Also aapt path is printed, but it is not used anymore)

step.yml Outdated
@@ -47,9 +47,11 @@ is_skippable: false
deps:
brew:
- name: go
Copy link
Contributor

@lpusok lpusok Dec 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A sidenote: go does not need to be added as a dependency, based on the guide: https://devcenter.bitrise.io/contributors/create-your-own-step/#submodules-and-step-dependencies

Copy link

@istvankovacs-bitrise istvankovacs-bitrise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mateherber mateherber merged commit 2b1d206 into master Jan 4, 2021
@mateherber mateherber deleted the STEP-2-large-apk branch January 4, 2021 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants