Wish Read-only attribute on Google Drive

JdV

Active Member
Licensed User
Longtime User
Hello

I moved a project folder to a Google Drive folder on my PC.

When I compile the app it wipes the 'res' folder and creates a new one - this happens even though I have the line "#CustomBuildAction: 1, c:\windows\system32\attrib.exe, +r res\*.* /s".

It would seem that the Google Drive doesn't respect the 'read-only' attribute.

It would be good if the IDE could be set to not wipe the res folder regardless of the files' read-only attribute being set.

Regards

Joe
 

DonManfred

Expert
Licensed User
Longtime User
Just create a ADDITIONAL folder with the Resources
Add the additionalfolder with
B4X:
#AdditionalRes: ..\MyRessourceFolder
where MyRessourceFolder is the foldername inside your Projectfolder.

Put all needed Resources here. They even don´t have to be R/O here.

You should not use GoogleDrive to store projects though. Hold them on your Harddrive.
 
Last edited:

JdV

Active Member
Licensed User
Longtime User
Thanks for the quick reply but this didn't work for me.

I've added the line "#AdditionalRes: ..\AdditionalResources"
I've created the folder 'AdditionalResources' under the project folder.
I've placed the launcher icon at various resolutions in sub-folders of AdditionalResources (e.g. 'drawable-hdpi', 'drawable-mdpi' etc.)

The compiled app doesn't contain these folders under 'Objects\res'
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…