I followed the Submitting to F-droid guide . I followed all the instructions and when it came to running the command : fdroid readmeta, it gave this error
2024-09-29 11:02:03,473 CRITICAL: Unknown exception found!
Traceback (most recent call last):
File "/home/vagrant/fdroidserver/fdroid", line 22, in <module>
fdroidserver.__main__.main()
File "/home/vagrant/fdroidserver/fdroidserver/__main__.py", line 222, in main
raise e
File "/home/vagrant/fdroidserver/fdroidserver/__main__.py", line 203, in main
mod.main()
File "/home/vagrant/fdroidserver/fdroidserver/readmeta.py", line 32, in main
metadata.read_metadata()
File "/home/vagrant/fdroidserver/fdroidserver/metadata.py", line 566, in read_metadata
Path(basedir).mkdir(exist_ok=True)
File "/usr/lib/python3.11/pathlib.py", line 1117, in mkdir
os.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: 'tmp'
It worked thank you so much.
But the next command fails:
vagrant@cfc55927500c:/build$ fdroid rewritemeta com.launchr
2024-10-02 10:36:38,058 INFO: Rewriting 'com.launchr'
2024-10-02 10:36:38,063 CRITICAL: Unknown exception found!
Traceback (most recent call last):
File "/usr/lib/python3.11/shutil.py", line 825, in move
os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/tmp/tmplt2upd3m/com.launchr.yml' -> 'metadata/com.launchr.yml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vagrant/fdroidserver/fdroid", line 22, in <module>
fdroidserver.__main__.main()
File "/home/vagrant/fdroidserver/fdroidserver/__main__.py", line 222, in main
raise e
File "/home/vagrant/fdroidserver/fdroidserver/__main__.py", line 203, in main
mod.main()
File "/home/vagrant/fdroidserver/fdroidserver/rewritemeta.py", line 111, in main
shutil.move(tmp_path, path)
File "/usr/lib/python3.11/shutil.py", line 845, in move
copy_function(src, real_dst)
File "/usr/lib/python3.11/shutil.py", line 436, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.11/shutil.py", line 258, in copyfile
with open(dst, 'wb') as fdst:
^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'metadata/com.launchr.yml'
vagrant@cfc55927500c:/build$
I don’t know why the permission gets denied. Is it not possible in wsl?
Thanks, it worked. I’m a complete beginner, I have one more question.
So in my keystore file is not committed to github. How fdroid is gonna build the file?
The app would only work with my keystore since its sha key has access to my firebase
Do I need to include the keystore and googleservices.json file in some way. Sorry if this sounds stupid, I don’t know what I’m doing
I’m quite a beginner. Will add it.
I use it for authorizing users with their google accounts, I can probably replace playservices sign in with google sign in.
And I’m also using firestore for storing user data.
It is a finance tracking app.
I’m also planning on publishing an android launcher
This doesn’t have any of those dependencies
Hope this wil work