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

Invalid tag for mapping #32

Open
v0l opened this issue Dec 21, 2024 · 3 comments
Open

Invalid tag for mapping #32

v0l opened this issue Dec 21, 2024 · 3 comments

Comments

@v0l
Copy link

v0l commented Dec 21, 2024

Trying to publish snort:

snort:
  android:
    repository: https://github.com/v0l/snort
    name: Snort
    artifacts:
      - snort-universal-v%v.apk

Getting this error:

 ERROR Error on line 1, column 1: Invalid tag for mapping.
  ╷
1 │ !!brut.androlib.meta.MetaInfo
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
#0      Loader._loadMapping (package:yaml/src/loader.dart:159)
#1      Loader._loadNode (package:yaml/src/loader.dart:92)
#2      Loader._loadDocument (package:yaml/src/loader.dart:68)
#3      Loader.load (package:yaml/src/loader.dart:60)
#4      loadYamlDocument (package:yaml/yaml.dart:72)
#5      loadYamlNode (package:yaml/yaml.dart:57)
#6      loadYaml (package:yaml/yaml.dart:44)
#7      parseApk (package:zapstore_cli/commands/publish/apk.dart:65)
<asynchronous suspension>
#8      publish (package:zapstore_cli/commands/publish.dart:149)
<asynchronous suspension>
#9      PublishCommand.run (package:zapstore_cli/main.dart:175)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:212)
<asynchronous suspension>
#11     main (package:zapstore_cli/main.dart:37)
<asynchronous suspension>
@franzaps
Copy link
Contributor

franzaps commented Dec 28, 2024

@v0l what version of apktool are you running? apktool -v

It's working for me on 2.9.3. Try with zapstore install apktool, though it may fail if you're on Linux (#24)

@v0l
Copy link
Author

v0l commented Dec 28, 2024

Using whatever was on apt ubuntu 24.04

Apktool v2.7.0-dirty

@franzaps
Copy link
Contributor

franzaps commented Dec 28, 2024

If you can't easily update, try downloading latest from https://github.com/iBotPeaches/Apktool/releases/tag/v2.10.0

and create an apktool executable:

#!/bin/bash
java -jar apktool_2.10.0.jar

Then it should work. I also would need to whitelist you in the relay, what npub do you want to publish with? And what is the android app ID for the snort app?

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

No branches or pull requests

2 participants