Share My Creation [B4X] [Project Template] B4XPages for GitHub Upload

Attachments

  • B4XPages (for GitHub).b4xtemplate
    10.1 KB · Views: 138

aeric

Expert
Licensed User
Longtime User
A problem is "Shared Files" folder is not uploaded to GitHub repository because it is an empty folder.
This can cause an error when compiling.

What I can think of to solve it are:
1. Add a dummy text file to the folder. This file need to be deleted after creating a new project from IDE.
2. Attach an additional b4xtemplate file (with Shared Files folder) to the repo for user to download.
3. Publish this b4xtemplate as Release inside a zip file.
4. Alternative, comment out the #CustomBuildAction for RoboCopy.exe. Inform user to manually create the Shared Files folder if necessary.
 

Mashiane

Expert
Licensed User
Longtime User
Added b4xlib and b4xtemplate on my side also on the attributes file as in some cases I have those included.

B4X:
*.b4xlib linguist-language=B4X
*.b4xtemplate linguist-language=B4X
*.b4a linguist-language=B4X
*.b4i linguist-language=B4X
*.b4j linguist-language=B4X
*.bas linguist-language=B4X
*.b4a linguist-detectable=true
*.b4i linguist-detectable=true
*.b4j linguist-detectable=true
*.bas linguist-detectable=true
*.b4xlib linguist-detectable=true
*.b4xtemplate linguist-detectable=true

Now I know

The linguist-detectable attribute in a .gitattributes file is used to control whether GitHub's Linguist tool will analyze and detect a specific file type or directory as part of the repository's programming language statistics.
 

aeric

Expert
Licensed User
Longtime User
Since b4xlib and b4xtemplate are zip files and they are considered as binary/releases instead of source code. The content may not able to read and detected by github engine.
It is also not recommended to upload the projects in zip files.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…