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

GitHub: https://github.com/pyhoon/b4xpages-for-github

B4A


Usage:
1. Download the template and put the file inside B4X Additional Libraries folder
2. Open B4A/B4i/B4J IDE
3. Click menu File -> New and select B4XPages (GitHub)

B4XPages (GitHub)
 

Attachments

Last edited:
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.
 
Added b4xlib and b4xtemplate on my side also on the attributes file as in some cases I have those included.

B4X:
Expand Collapse Copy
*.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.
 
Added b4xlib and b4xtemplate on my side also on the attributes file as in some cases I have those included.

B4X:
Expand Collapse Copy
*.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
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.
 
Top