How to include files to distribution

Hello everyone,

I’m currently working on a simple game and I’m having trouble including license files in the APK export. I’ve tried several methods, but none seem to work.

Despite these efforts, the license files are not being included in the final APK. I’ve also considered adding meta-data to the manifest, but I’m not sure if that’s the right approach.

I simply have a folder licenses and in the folder two files license.txt and copyright.txt

I need defold to add it itself, so that the signature key check will work fine

Could anyone provide guidance on how to properly include license files in the APK export? Any help would be greatly appreciated!

Thank you!

I think you are looking for the Bundle Resources option in the Game Project file.

Thank you for the reply, I have already tried bundle resources.

My project structure:

Project name
- res
--android
---license.txt
---copyright.txt
[project]
title = Balloon Blitz
version = 0.99
developer = Argellius
write_log = 1
bundle_resources = /res

Any ideas what I’m doing wrong, please ?

The resource directory must contain subfolders named by platform, or architecture-platform.

Supported platforms are ios, android, osx, win32, linux, web, switch

/res/android/license.txt

2 Likes

and “common” (for all platforms)

2 Likes

I got it, thank you.