.pck file needed but not always

Godot Version

Question

So I have an exported godot project and trying to make a PKGBUILD for it (for the AUR) and I can run it if I have “data for linux and bsd” folder, .pck, and another folder thats needed by the program.

I have this line of code:
cp -r "${srcdir}/pkgname/" "${pkgdir}/opt/"

While in src/pkgname/ I can double click the program and it would run perfectly, while in the opt/ it says
Error: Couldn't load project data at path ".". Is the .pck file missing? If you've renamed the executable, the associated.pck file should also be renamed to match the executable's name (without the extension).

Can you post the list of files in the source folder here?

In the src/ folder there is an other folder pkgname and in there, there are : data_pkgname_linuxbsd_x86_64, assembler,pkagname_icon.png, pkgname.x86_64 and pkgname.pck

i fixed it by specifying where .pck is like
–main-pack /opt/${pkgname}/pkgname.pck

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.