Exclude folders under Media Copy

Previous topic - Next topic

spacefractal

I have releaze mp3 wont play on Android (not sure its directly of a MUSICVOLUME issue, so nothing to talk about here at all, I just started on the sound part).

Here I have a sfx folder under Media player which I want a contain folder to exclude from contain folder or the other way. Example I might need to include ogg versions of the music on Android and mp3 for iOS, and I dont want to have unneeded files (like ogg for iOS).

By now its simply just copy all files from Media filer without any control over it. Its not need to been do at file level, since I could just do content in the OS specefic folder. I could do that outside Media folder, but would been much eaiser if IDE just could exclude a folder under Media copy (except if you can run a batch file just after media copy, and before compiling).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello

hm. How about an "glb-distibute.txt" file in a directory, that allows you to specify what files of this directory are only to be copied for given platform?
Like:
Code (glbasic) Select

IPHONE
ANDROID

will not copy this directory (and subdirs) int e.g. the Caanoo build.

Saying this, would you want a distribute directory for Win32 and Linux as well?

spacefractal

#2
Don't do that in the primary folder, just put that file in the distribute folder. Here they have each own platform allready, and could been checked if the text file exists or not.

If glb-distibute.txt exits (regaardless its empty or not), no files/subfolders would been copied at all, so all you would leave is the folder with the text file (and leave eventuelly other files putted in manual).

PS. Sorry for edit, I throught I posted in another post.


Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

I have yesterday tried to writeprotest the folder to prevent to copy the files from source to the distrubtion folder, which should also does the job.

But its seen its just writeable it again and copy all folders anyway. I dont see why I need both ogg/mp3 versions when one of them work (and ogg work for other). I have put them into own dir.

Its no hurry really since the game is stll few months still ahead.

PS. The same should go if I write protect a file, then its should not try to replace that.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

ampos

I have the same problem, but there is a very easy solution:

on yourapp/yourapp.app/media DO NOT PLACE your music files.

In /distribute/android/assets/media place the ogg file.

In distribute/webos/media place the mp3 ones.

Your main /media folder is copied to target distribute, but distribute/media content is not deleted.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

spacefractal

The only thing is there is no win32 distribution folder, so I won't could hear the music on windows, due it's would been missing. I could here do outside folder for windows....

but for final version it's a meantime fix through :-).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/